| Package | Description |
|---|---|
| org.springframework.cache |
Spring's generic cache abstraction.
|
| org.springframework.cache.caffeine |
Support classes for the open source cache in
Caffeine library,
allowing to set up Caffeine caches within Spring's cache abstraction.
|
| org.springframework.cache.concurrent |
Implementation package for
java.util.concurrent based caches. |
| org.springframework.cache.ehcache |
Support classes for the open source cache
EhCache 2.x,
allowing to set up an EhCache CacheManager and Caches
as beans in a Spring context.
|
| org.springframework.cache.interceptor |
AOP-based solution for declarative caching demarcation.
|
| org.springframework.cache.jcache |
Implementation package for JSR-107 (javax.cache aka "JCache") based caches.
|
| org.springframework.cache.support |
Support classes for the org.springframework.cache package.
|
| org.springframework.cache.transaction |
Transaction-aware decorators for the org.springframework.cache package.
|
| org.springframework.web.reactive.config |
Spring WebFlux configuration infrastructure.
|
| org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
| org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
| org.springframework.web.servlet.resource |
Support classes for serving static resources.
|
| Modifier and Type | Method and Description |
|---|---|
Cache |
CacheManager.getCache(java.lang.String name)
Return the cache associated with the given name.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CaffeineCache
Spring
Cache adapter implementation
on top of a Caffeine Cache instance. |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
CaffeineCacheManager.createCaffeineCache(java.lang.String name)
Create a new CaffeineCache instance for the specified cache name.
|
Cache |
CaffeineCacheManager.getCache(java.lang.String name) |
| Modifier and Type | Class and Description |
|---|---|
class |
ConcurrentMapCache
Simple
Cache implementation based on the
core JDK java.util.concurrent package. |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
ConcurrentMapCacheManager.createConcurrentMapCache(java.lang.String name)
Create a new ConcurrentMapCache instance for the specified cache name.
|
Cache |
ConcurrentMapCacheManager.getCache(java.lang.String name) |
| Modifier and Type | Class and Description |
|---|---|
class |
EhCacheCache
|
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
EhCacheCacheManager.getMissingCache(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<Cache> |
EhCacheCacheManager.loadCaches() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<? extends Cache> |
CacheAspectSupport.CacheOperationContext.getCaches() |
protected java.util.Collection<? extends Cache> |
CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context,
CacheResolver cacheResolver) |
java.util.Collection<? extends Cache> |
CacheResolver.resolveCaches(CacheOperationInvocationContext<?> context)
Return the cache(s) to use for the specified invocation.
|
java.util.Collection<? extends Cache> |
AbstractCacheResolver.resolveCaches(CacheOperationInvocationContext<?> context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractCacheInvoker.doClear(Cache cache)
|
protected void |
AbstractCacheInvoker.doEvict(Cache cache,
java.lang.Object key)
Execute
evict(Object) on the specified Cache and
invoke the error handler if an exception occurs. |
protected Cache.ValueWrapper |
AbstractCacheInvoker.doGet(Cache cache,
java.lang.Object key)
Execute
get(Object) on the specified Cache and
invoke the error handler if an exception occurs. |
protected void |
AbstractCacheInvoker.doPut(Cache cache,
java.lang.Object key,
java.lang.Object result)
Execute
put(Object, Object) on the specified Cache
and invoke the error handler if an exception occurs. |
void |
CacheErrorHandler.handleCacheClearError(java.lang.RuntimeException exception,
Cache cache)
Handle the given runtime exception thrown by the cache provider when
clearing the specified
Cache, possibly rethrowing it as a
fatal exception. |
void |
SimpleCacheErrorHandler.handleCacheClearError(java.lang.RuntimeException exception,
Cache cache) |
void |
CacheErrorHandler.handleCacheEvictError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key)
Handle the given runtime exception thrown by the cache provider when
clearing an item with the specified
key, possibly rethrowing
it as a fatal exception. |
void |
SimpleCacheErrorHandler.handleCacheEvictError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key) |
void |
CacheErrorHandler.handleCacheGetError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key)
Handle the given runtime exception thrown by the cache provider when
retrieving an item with the specified
key, possibly
rethrowing it as a fatal exception. |
void |
SimpleCacheErrorHandler.handleCacheGetError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key) |
void |
CacheErrorHandler.handleCachePutError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key,
java.lang.Object value)
Handle the given runtime exception thrown by the cache provider when
updating an item with the specified
key and value,
possibly rethrowing it as a fatal exception. |
void |
SimpleCacheErrorHandler.handleCachePutError(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key,
java.lang.Object value) |
| Modifier and Type | Class and Description |
|---|---|
class |
JCacheCache
Cache implementation on top of a
javax.cache.Cache instance. |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
JCacheCacheManager.getMissingCache(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection<Cache> |
JCacheCacheManager.loadCaches() |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractValueAdaptingCache
Common base class for
Cache implementations that need to adapt
null values (and potentially other such special values) before
passing them on to the underlying store. |
class |
NoOpCache
A no operation
Cache implementation suitable for disabling caching. |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
AbstractCacheManager.decorateCache(Cache cache)
Decorate the given Cache object if necessary.
|
Cache |
CompositeCacheManager.getCache(java.lang.String name) |
Cache |
NoOpCacheManager.getCache(java.lang.String name)
This implementation always returns a
Cache implementation that will not store items. |
Cache |
AbstractCacheManager.getCache(java.lang.String name) |
protected Cache |
AbstractCacheManager.getMissingCache(java.lang.String name)
Return a missing cache with the specified
name or null if
such cache does not exist or could not be created on the fly. |
protected Cache |
AbstractCacheManager.lookupCache(java.lang.String name)
Check for a registered cache of the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Collection<? extends Cache> |
AbstractCacheManager.loadCaches()
Load the initial caches for this cache manager.
|
protected java.util.Collection<? extends Cache> |
SimpleCacheManager.loadCaches() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractCacheManager.addCache(Cache cache)
Deprecated.
as of Spring 4.3, in favor of
AbstractCacheManager.getMissingCache(String) |
protected Cache |
AbstractCacheManager.decorateCache(Cache cache)
Decorate the given Cache object if necessary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleCacheManager.setCaches(java.util.Collection<? extends Cache> caches)
Specify the collection of Cache instances to use for this CacheManager.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TransactionAwareCacheDecorator
Cache decorator which synchronizes its
TransactionAwareCacheDecorator.put(java.lang.Object, java.lang.Object), TransactionAwareCacheDecorator.evict(java.lang.Object) and TransactionAwareCacheDecorator.clear()
operations with Spring-managed transactions (through Spring's TransactionSynchronizationManager,
performing the actual cache put/evict/clear operation only in the after-commit phase of a
successful transaction. |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
AbstractTransactionSupportingCacheManager.decorateCache(Cache cache) |
Cache |
TransactionAwareCacheManagerProxy.getCache(java.lang.String name) |
Cache |
TransactionAwareCacheDecorator.getTargetCache()
Return the target Cache that this Cache should delegate to.
|
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
AbstractTransactionSupportingCacheManager.decorateCache(Cache cache) |
| Constructor and Description |
|---|
TransactionAwareCacheDecorator(Cache targetCache)
Create a new TransactionAwareCache for the given target Cache.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceChainRegistration |
ResourceHandlerRegistration.resourceChain(boolean cacheResources,
Cache cache)
Configure a chain of resource resolvers and transformers to use.
|
| Constructor and Description |
|---|
ResourceChainRegistration(boolean cacheResources,
Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
Cache |
CachingResourceResolver.getCache()
Return the configured
Cache. |
Cache |
CachingResourceTransformer.getCache()
Return the configured
Cache. |
| Constructor and Description |
|---|
CachingResourceResolver(Cache cache) |
CachingResourceTransformer(Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
ResourceChainRegistration |
ResourceHandlerRegistration.resourceChain(boolean cacheResources,
Cache cache)
Configure a chain of resource resolvers and transformers to use.
|
| Constructor and Description |
|---|
ResourceChainRegistration(boolean cacheResources,
Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
Cache |
CachingResourceResolver.getCache()
Return the configured
Cache. |
Cache |
CachingResourceTransformer.getCache()
Return the configured
Cache. |
| Constructor and Description |
|---|
CachingResourceResolver(Cache cache) |
CachingResourceTransformer(Cache cache) |