Package ru.tinkoff.kora.cache.annotation
Annotation Interface CacheInvalidate
@Repeatable(CacheInvalidates.class)
@Target(METHOD)
@Retention(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.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanString[]Limit the automaticCacheKeyMapperto the given parameter names.
-
Element Details
-
value
- Returns:
- cache name (correlate with name in configuration file)
-
-
-
parameters
String[] parametersLimit the automaticCacheKeyMapperto the given parameter names. Mutually exclusive with- Returns:
- The parameter names that make up the key.
- Default:
- {}
-
invalidateAll
boolean invalidateAll- Returns:
- Whether all values within the cache should be evicted or only those for the generated key
- Default:
- false
-