@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited @Documented @CacheConfig @Type(value=CacheInterceptor.class) @Repeatable(value=InvalidateOperations.class) public @interface CacheInvalidate
An annotation that can be applied at the type or method level to indicate that the annotated operation should cause the eviction of the given caches.
| Modifier and Type | Optional Element and Description | 
|---|---|
| boolean | all | 
| boolean | asyncWhether the cache operation should be performed asynchronously and not block the returning value. | 
| String[] | cacheNamesAlias for  CacheConfig.cacheNames(). | 
| Class<? extends CacheKeyGenerator> | keyGeneratorAlias for  CacheConfig.keyGenerator(). | 
| String[] | parametersLimit the automatic  CacheKeyGeneratorto the given parameter names. | 
| String[] | valueAlias for  CacheConfig.cacheNames(). | 
@AliasFor(member="cacheNames") public abstract String[] value
CacheConfig.cacheNames().@AliasFor(annotation=CacheConfig.class, member="cacheNames") public abstract String[] cacheNames
CacheConfig.cacheNames().@AliasFor(annotation=CacheConfig.class, member="keyGenerator") public abstract Class<? extends CacheKeyGenerator> keyGenerator
CacheConfig.keyGenerator().public abstract String[] parameters
CacheKeyGenerator to the given parameter names. Mutually exclusive with
 keyGenerator()public abstract boolean all
public abstract boolean async
CompletableFuture.