EvictInterceptor
EvictInterceptor can automatically clear the cache based on the CacheName annotation. The following is the sample code:
@Before(EvictInterceptor.class)
@CacheName("blogList")
public void update() { getModel(Blog.class).update() ; redirect("blog.html");
}
@CacheName("blogList")
public void update() { getModel(Blog.class).update() ; redirect("blog.html");
}