Package org.openiam.cache
Annotation Type CacheKeyEvict
-
@Target(FIELD) @Retention(RUNTIME) @Inherited @Documented public @interface CacheKeyEvict
When used in conjunction with @CacheEvict, this will tell our custom OpeniamCacheInterceptor which keys to purge. When a @CacheEvict takes place OpeniamCacheInterceptor will first look at the keyGenerator of this annotation. If it is defined, the cache key will be generated using this class If keyGenerator is undefined, the Cache Interceptor will make the assumption that the annotated parameter is either a class that extends BaseEntity, or a String representing a primary key- Author:
- Lev Bornovalov
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends OpeniamKeyGenerator>
keyGenerator
A spring bean that will return the key for this parameter
-
-
-
Element Detail
-
value
String value
The cache name to evict If not specified, it the cache specified in @CacheEvict will be used
-
-
-
keyGenerator
Class<? extends OpeniamKeyGenerator> keyGenerator
A spring bean that will return the key for this parameter- Returns:
- Default:
- org.openiam.cache.DefaultOpeniamKeyGenerator.class
-
-