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.
|
Modifier and Type | Field and Description |
---|---|
protected Supplier<CacheResolver> |
AbstractCachingConfiguration.cacheResolver |
Modifier and Type | Method and Description |
---|---|
default CacheResolver |
CachingConfigurer.cacheResolver()
Return the
CacheResolver bean to use to resolve regular caches for
annotation-driven cache management. |
CacheResolver |
CachingConfigurerSupport.cacheResolver() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCacheResolver
A base
CacheResolver implementation that requires the concrete
implementation to provide the collection of cache name(s) based on the
invocation context. |
class |
NamedCacheResolver
A
CacheResolver that forces the resolution to a configurable
collection of name(s) against a given CacheManager . |
class |
SimpleCacheResolver
A simple
CacheResolver that resolves the Cache instance(s)
based on a configurable CacheManager and the name of the
cache(s) as provided by getCacheNames() . |
Modifier and Type | Method and Description |
---|---|
CacheResolver |
CacheAspectSupport.getCacheResolver()
Return the default
CacheResolver that this cache aspect delegates to. |
Modifier and Type | Method and Description |
---|---|
protected Collection<? extends Cache> |
CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context,
CacheResolver cacheResolver) |
void |
CacheAspectSupport.setCacheResolver(CacheResolver cacheResolver)
Set the default
CacheResolver that this cache aspect should delegate
to if no specific cache resolver has been set for the operation. |
void |
CacheProxyFactoryBean.setCacheResolver(CacheResolver cacheResolver)
Set the default
CacheResolver that this cache aspect should delegate
to if no specific cache resolver 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) |