@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 |
async
Whether the cache operation should be performed asynchronously and not block the returning value.
|
java.lang.String[] |
cacheNames
Alias for
CacheConfig.cacheNames() . |
java.lang.Class<? extends CacheKeyGenerator> |
keyGenerator
Alias for
CacheConfig.keyGenerator() . |
java.lang.String[] |
parameters
Limit the automatic
CacheKeyGenerator to the given parameter names. |
java.lang.String[] |
value
Alias for
CacheConfig.cacheNames() . |
@AliasFor(member="cacheNames") public abstract java.lang.String[] value
CacheConfig.cacheNames()
.@AliasFor(annotation=CacheConfig.class, member="cacheNames") public abstract java.lang.String[] cacheNames
CacheConfig.cacheNames()
.@AliasFor(annotation=CacheConfig.class, member="keyGenerator") public abstract java.lang.Class<? extends CacheKeyGenerator> keyGenerator
CacheConfig.keyGenerator()
.public abstract java.lang.String[] parameters
CacheKeyGenerator
to the given parameter names. Mutually exclusive with
keyGenerator()
public abstract boolean all
public abstract boolean async
CompletableFuture
.