May 14, 2021 JFinal manual
EvictInterceptor automatically clears the cache based on CacheName annotations. Here's the sample code:
@Before(EvictInterceptor. class )The usage in the example above clears cached data that cacheName is blogList, and cached data with cacheName as blogList is automatically updated with cached data in cacheName as blogList.
@CacheName("blogList")
public void update () { getModel(Blog.class).update(); redirect("blog.html");
}