7.4 EvictInterceptor

    上例中的用法将清除cacheName为blogList的缓存数据,与其配合的CacheInterceptor会自动更新cacheName为blogList的缓存数据。

    1. @Before(EvictInterceptor.class)@CacheName("blogList, hotBlogList") // 逗号分隔多个 cacheNamepublic void update() { }