@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface CacheConfig
@CacheConfigprovides a mechanism for sharing common cache-related settings at the class level.
When this annotation is present on a given class, it provides a set of default settings for any cache operation defined in that class.
|Modifier and Type||Optional Element and Description|
Names of the default caches to consider for caching operations defined in the annotated class.
The bean name of the custom
The bean name of the default
public abstract java.lang.String cacheNames
If none is set at the operation level, these are used instead of the default.
May be used to determine the target cache (or caches), matching the qualifier value or the bean names of a specific bean definition.
public abstract java.lang.String keyGenerator
KeyGeneratorto use for the class.
If none is set at the operation level, this one is used instead of the default.
The key generator is mutually exclusive with the use of a custom key. When such key is defined for the operation, the value of this key generator is ignored.
public abstract java.lang.String cacheManager
CacheManagerto use to create a default
CacheResolverif none is set already.
If no resolver and no cache manager are set at the operation level, and no cache
resolver is set via
cacheResolver(), this one is used instead of the default.
public abstract java.lang.String cacheResolver
If no resolver and no cache manager are set at the operation level, this one is used instead of the default.