-
Notifications
You must be signed in to change notification settings - Fork 1
EvictCache
tylertreat edited this page Jan 21, 2013
·
1 revision
The EvictCache
annotation indicates that the specified cache(s) will be evicted when the annotated method is invoked. Method results are cached using the Cache annotation.
The value for this annotation indicates the name(s) of the cache(s) to evict. If no cache names are specified, all caches will be evicted.
The example below illustrates how the cache fooCache
is evicted when the method evictFoo
is invoked using the EvictCache
annotation.
@EvictCache("fooCache")
public void evictFoo() {
// ...
}