Uses of Interface
org.springframework.cache.Cache
Package
Description
Spring's generic cache abstraction.
Support classes for the open source cache in
Caffeine library,
allowing to set up Caffeine caches within Spring's cache abstraction.
Implementation package for
java.util.concurrent
based caches.AOP-based solution for declarative caching demarcation.
Implementation package for JSR-107 (javax.cache aka "JCache") based caches.
Support classes for the org.springframework.cache package.
Transaction-aware decorators for the org.springframework.cache package.
Spring WebFlux configuration infrastructure.
Support classes for serving static resources.
Annotation-based setup for Spring MVC.
Support classes for serving static resources.
-
Uses of Cache in org.springframework.cache
-
Uses of Cache in org.springframework.cache.caffeine
Modifier and TypeClassDescriptionclass
SpringCache
adapter implementation on top of a CaffeineCache
instance.Modifier and TypeMethodDescriptionprotected Cache
CaffeineCacheManager.adaptCaffeineCache
(String name, com.github.benmanes.caffeine.cache.AsyncCache<Object, Object> cache) Adapt the given new Caffeine AsyncCache instance to Spring'sCache
abstraction for the specified cache name.protected Cache
CaffeineCacheManager.adaptCaffeineCache
(String name, com.github.benmanes.caffeine.cache.Cache<Object, Object> cache) Adapt the given new native Caffeine Cache instance to Spring'sCache
abstraction for the specified cache name.protected Cache
CaffeineCacheManager.createCaffeineCache
(String name) Build a commonCaffeineCache
instance for the specified cache name, using the common Caffeine configuration specified on this cache manager. -
Uses of Cache in org.springframework.cache.concurrent
Modifier and TypeClassDescriptionclass
SimpleCache
implementation based on the core JDKjava.util.concurrent
package. -
Uses of Cache in org.springframework.cache.interceptor
Modifier and TypeMethodDescriptionprotected Collection<? extends Cache>
CacheAspectSupport.CacheOperationContext.getCaches()
protected Collection<? extends Cache>
CacheAspectSupport.getCaches
(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) Collection<? extends Cache>
AbstractCacheResolver.resolveCaches
(CacheOperationInvocationContext<?> context) Collection<? extends Cache>
CacheResolver.resolveCaches
(CacheOperationInvocationContext<?> context) Return the cache(s) to use for the specified invocation.Modifier and TypeMethodDescriptionprotected void
protected void
Executeevict(Object)
/evictIfPresent(Object)
on the specifiedCache
and invoke the error handler if an exception occurs.protected Cache.ValueWrapper
Executeget(Object)
on the specifiedCache
and invoke the error handler if an exception occurs.protected void
Executeput(Object, Object)
on the specifiedCache
and invoke the error handler if an exception occurs.void
CacheErrorHandler.handleCacheClearError
(RuntimeException exception, Cache cache) Handle the given runtime exception thrown by the cache provider when clearing the specifiedCache
, possibly rethrowing it as a fatal exception.void
LoggingCacheErrorHandler.handleCacheClearError
(RuntimeException exception, Cache cache) void
SimpleCacheErrorHandler.handleCacheClearError
(RuntimeException exception, Cache cache) void
CacheErrorHandler.handleCacheEvictError
(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when clearing an item with the specifiedkey
, possibly rethrowing it as a fatal exception.void
LoggingCacheErrorHandler.handleCacheEvictError
(RuntimeException exception, Cache cache, Object key) void
SimpleCacheErrorHandler.handleCacheEvictError
(RuntimeException exception, Cache cache, Object key) void
CacheErrorHandler.handleCacheGetError
(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when retrieving an item with the specifiedkey
, possibly rethrowing it as a fatal exception.void
LoggingCacheErrorHandler.handleCacheGetError
(RuntimeException exception, Cache cache, Object key) void
SimpleCacheErrorHandler.handleCacheGetError
(RuntimeException exception, Cache cache, Object key) void
CacheErrorHandler.handleCachePutError
(RuntimeException exception, Cache cache, Object key, Object value) Handle the given runtime exception thrown by the cache provider when updating an item with the specifiedkey
andvalue
, possibly rethrowing it as a fatal exception.void
LoggingCacheErrorHandler.handleCachePutError
(RuntimeException exception, Cache cache, Object key, Object value) void
SimpleCacheErrorHandler.handleCachePutError
(RuntimeException exception, Cache cache, Object key, Object value) -
Uses of Cache in org.springframework.cache.jcache
Modifier and TypeClassDescriptionclass
Cache
implementation on top of ajavax.cache.Cache
instance.Modifier and TypeMethodDescriptionprotected Cache
JCacheCacheManager.getMissingCache
(String name) -
Uses of Cache in org.springframework.cache.support
Modifier and TypeClassDescriptionclass
Common base class forCache
implementations that need to adaptnull
values (and potentially other such special values) before passing them on to the underlying store.class
A no operationCache
implementation suitable for disabling caching.Modifier and TypeMethodDescriptionprotected Cache
AbstractCacheManager.decorateCache
(Cache cache) Decorate the given Cache object if necessary.This implementation always returns aCache
implementation that will not store items.protected Cache
AbstractCacheManager.getMissingCache
(String name) Return a missing cache with the specifiedname
, ornull
if such a cache does not exist or could not be created on demand.protected final Cache
AbstractCacheManager.lookupCache
(String name) Check for a registered cache of the given name.Modifier and TypeMethodDescriptionprotected abstract Collection<? extends Cache>
AbstractCacheManager.loadCaches()
Load the initial caches for this cache manager.protected Collection<? extends Cache>
SimpleCacheManager.loadCaches()
Modifier and TypeMethodDescriptionprotected Cache
AbstractCacheManager.decorateCache
(Cache cache) Decorate the given Cache object if necessary.Modifier and TypeMethodDescriptionvoid
SimpleCacheManager.setCaches
(Collection<? extends Cache> caches) Specify the collection of Cache instances to use for this CacheManager. -
Uses of Cache in org.springframework.cache.transaction
Modifier and TypeClassDescriptionclass
Cache decorator which synchronizes itsTransactionAwareCacheDecorator.put(java.lang.Object, java.lang.Object)
,TransactionAwareCacheDecorator.evict(java.lang.Object)
andTransactionAwareCacheDecorator.clear()
operations with Spring-managed transactions (through Spring'sTransactionSynchronizationManager
), performing the actual cache put/evict/clear operation only in the after-commit phase of a successful transaction.Modifier and TypeMethodDescriptionprotected Cache
AbstractTransactionSupportingCacheManager.decorateCache
(Cache cache) TransactionAwareCacheDecorator.getTargetCache()
Return the target Cache that this Cache should delegate to.Modifier and TypeMethodDescriptionprotected Cache
AbstractTransactionSupportingCacheManager.decorateCache
(Cache cache) ModifierConstructorDescriptionTransactionAwareCacheDecorator
(Cache targetCache) Create a new TransactionAwareCache for the given target Cache. -
Uses of Cache in org.springframework.web.reactive.config
Modifier and TypeMethodDescriptionResourceHandlerRegistration.resourceChain
(boolean cacheResources, Cache cache) Configure a chain of resource resolvers and transformers to use. -
Uses of Cache in org.springframework.web.reactive.resource
Modifier and TypeMethodDescriptionCachingResourceResolver.getCache()
Return the configuredCache
.CachingResourceTransformer.getCache()
Return the configuredCache
.ModifierConstructorDescriptionCachingResourceResolver
(Cache cache) CachingResourceTransformer
(Cache cache) -
Uses of Cache in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionResourceHandlerRegistration.resourceChain
(boolean cacheResources, Cache cache) Configure a chain of resource resolvers and transformers to use. -
Uses of Cache in org.springframework.web.servlet.resource
Modifier and TypeMethodDescriptionCachingResourceResolver.getCache()
Return the configuredCache
.CachingResourceTransformer.getCache()
Return the configuredCache
.ModifierConstructorDescriptionCachingResourceResolver
(Cache cache) CachingResourceTransformer
(Cache cache)