Annotation Interface CacheConfig
@CacheConfig provides 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.
- Since:
- 4.1
- Author:
- Stephane Nicoll, Sam Brannen
- See Also:
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionThe bean name of the customCacheManagerto use to create a defaultCacheResolverif none is set already.String[]Names of the default caches to consider for caching operations defined in the annotated class.The bean name of the customCacheResolverto use.The bean name of the defaultKeyGeneratorto use for the class.String[]Alias forcacheNames().
- 
Element Details- 
valueAlias forcacheNames().Intended to be used when no other attributes are needed, for example: @CacheConfig("books").- Since:
- 6.2.9
 - Default:
- {}
 
- 
cacheNamesNames of the default caches to consider for caching operations defined in the annotated class.If none is set at the operation level, these are used instead of the default. Names may be used to determine the target cache(s), to be resolved via the configured cacheResolver()which typically delegates toCacheManager.getCache(java.lang.String). For further details seeCacheable.cacheNames().- See Also:
 - Default:
- {}
 
- 
keyGeneratorString keyGeneratorThe bean name of the defaultKeyGeneratorto 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. - Default:
- ""
 
- 
cacheManagerString cacheManagerThe bean name of the customCacheManagerto use to create a defaultCacheResolverif 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.- See Also:
 - Default:
- ""
 
- 
cacheResolverString cacheResolverThe bean name of the customCacheResolverto use.If no resolver and no cache manager are set at the operation level, this one is used instead of the default. - Default:
- ""
 
 
-