Package | Description |
---|---|
org.springframework.cache.annotation |
Annotations and supporting classes for declarative cache management.
|
org.springframework.cache.interceptor |
AOP-based solution for declarative caching demarcation.
|
org.springframework.cache.jcache.interceptor |
AOP-based solution for declarative caching demarcation using JSR-107 annotations.
|
Modifier and Type | Field and Description |
---|---|
protected Supplier<KeyGenerator> |
AbstractCachingConfiguration.keyGenerator |
Modifier and Type | Method and Description |
---|---|
default KeyGenerator |
CachingConfigurer.keyGenerator()
Return the key generator bean to use for annotation-driven cache management.
|
KeyGenerator |
CachingConfigurerSupport.keyGenerator() |
Modifier and Type | Class and Description |
---|---|
class |
SimpleKeyGenerator
Simple key generator.
|
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
CacheAspectSupport.getKeyGenerator()
Return the default
KeyGenerator that this cache aspect delegates to. |
Modifier and Type | Method and Description |
---|---|
void |
CacheAspectSupport.setKeyGenerator(KeyGenerator keyGenerator)
Set the default
KeyGenerator that this cache aspect should delegate to
if no specific key generator has been set for the operation. |
void |
CacheProxyFactoryBean.setKeyGenerator(KeyGenerator keyGenerator)
Set the default
KeyGenerator that this cache aspect should delegate to
if no specific key generator has been set for the operation. |
Modifier and Type | Method and Description |
---|---|
void |
CacheAspectSupport.configure(Supplier<CacheErrorHandler> errorHandler,
Supplier<KeyGenerator> keyGenerator,
Supplier<CacheResolver> cacheResolver,
Supplier<CacheManager> cacheManager)
Configure this aspect with the given error handler, key generator and cache resolver/manager
suppliers, applying the corresponding default if a supplier is not resolvable.
|
Constructor and Description |
---|
CacheOperationMetadata(CacheOperation operation,
Method method,
Class<?> targetClass,
KeyGenerator keyGenerator,
CacheResolver cacheResolver) |
Modifier and Type | Method and Description |
---|---|
protected KeyGenerator |
AnnotationJCacheOperationSource.determineKeyGenerator(javax.cache.annotation.CacheDefaults defaults,
Class<? extends javax.cache.annotation.CacheKeyGenerator> candidate) |
protected abstract KeyGenerator |
AnnotationJCacheOperationSource.getDefaultKeyGenerator()
Return the default
KeyGenerator if none is set. |
protected KeyGenerator |
DefaultJCacheOperationSource.getDefaultKeyGenerator() |
KeyGenerator |
DefaultJCacheOperationSource.getKeyGenerator()
Return the specified key generator to use.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultJCacheOperationSource.setKeyGenerator(KeyGenerator keyGenerator)
Set the default
KeyGenerator . |
Constructor and Description |
---|
DefaultJCacheOperationSource(Supplier<CacheManager> cacheManager,
Supplier<CacheResolver> cacheResolver,
Supplier<CacheResolver> exceptionCacheResolver,
Supplier<KeyGenerator> keyGenerator)
Construct a new
DefaultJCacheOperationSource with the given cache manager,
cache resolver and key generator suppliers, applying the corresponding default
if a supplier is not resolvable. |