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 java.util.function.Supplier<KeyGenerator> |
AbstractCachingConfiguration.keyGenerator |
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
CachingConfigurerSupport.keyGenerator() |
KeyGenerator |
CachingConfigurer.keyGenerator()
Return the key generator bean to use for annotation-driven cache management.
|
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(java.util.function.Supplier<CacheErrorHandler> errorHandler,
java.util.function.Supplier<KeyGenerator> keyGenerator,
java.util.function.Supplier<CacheResolver> cacheResolver,
java.util.function.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,
java.lang.reflect.Method method,
java.lang.Class<?> targetClass,
KeyGenerator keyGenerator,
CacheResolver cacheResolver) |
Modifier and Type | Method and Description |
---|---|
protected KeyGenerator |
AnnotationJCacheOperationSource.determineKeyGenerator(javax.cache.annotation.CacheDefaults defaults,
java.lang.Class<? extends javax.cache.annotation.CacheKeyGenerator> candidate) |
protected KeyGenerator |
DefaultJCacheOperationSource.getDefaultKeyGenerator() |
protected abstract KeyGenerator |
AnnotationJCacheOperationSource.getDefaultKeyGenerator()
Return the default
KeyGenerator if none is set. |
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(java.util.function.Supplier<CacheManager> cacheManager,
java.util.function.Supplier<CacheResolver> cacheResolver,
java.util.function.Supplier<CacheResolver> exceptionCacheResolver,
java.util.function.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. |