Annotation Type CacheEvict
Removes an entry from the cache when the method returns -- Spring's
@CacheEvict.
Keys and names are as Cacheable describes. A method that throws evicts
nothing unless beforeInvocation() says to evict first.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanRemoves every entry of the cache rather than one.booleanEvicts before the method runs, so even a call that throws evicts.String[]The same asvalue(), as Spring spells it.The key expression; seeCacheable.String[]The cache's name; the first is used when several are given.
-
Element Details
-
value
-
cacheNames
-
key
-
allEntries
boolean allEntriesRemoves every entry of the cache rather than one.- Default:
false
-
beforeInvocation
boolean beforeInvocationEvicts before the method runs, so even a call that throws evicts.- Default:
false
-