Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

6.4 EvictInterceptor


May 14, 2021 JFinal manual



EvictInterceptor automatically clears the cache based on CacheName annotations. Here's the sample code:

@Before(EvictInterceptor. class )
@CacheName("blogList")
public void update () { getModel(Blog.class).update(); redirect("blog.html");
}
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.