Package org.springframework.cache.interceptor
@NonNullApi
@NonNullFields
package org.springframework.cache.interceptor
AOP-based solution for declarative caching demarcation.
Builds on the AOP infrastructure in org.springframework.aop.framework.
Any POJO can be cache-advised with Spring.
-
ClassDescriptionA base component for invoking
Cache
operations and using a configurableCacheErrorHandler
when an exception occurs.A baseCacheResolver
implementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.Abstract implementation ofCacheOperation
that caches attributes for methods and implements a fallback policy: 1.The base interface that all cache operations must implement.Advisor driven by aCacheOperationSource
, used to include a cache advice bean for methods that are cacheable.Class describing a cache 'cacheable' operation.A builder that can be used to create aCacheableOperation
.Base class for caching aspects, such as theCacheInterceptor
or an AspectJ aspect.Metadata of a cache operation that does not depend on a particular invocation which makes it a good candidate for caching.A strategy for handling cache-related errors.Class describing a cache 'evict' operation.A builder that can be used to create aCacheEvictOperation
.AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (Cache
).Base class for cache operations.Base class for builders that can be used to create aCacheOperation
.CacheOperationInvocationContext<O extends BasicOperation>Representation of the context of the invocation of a cache operation.Abstract the invocation of a cache operation.Wrap any exception thrown while invokingCacheOperationInvoker.invoke()
.Interface used byCacheInterceptor
.Proxy factory bean for simplified declarative caching handling.Class describing a cache 'put' operation.A builder that can be used to create aCachePutOperation
.Determine theCache
instance(s) to use for an intercepted method invocation.CompositeCacheOperationSource
implementation that iterates over a given array ofCacheOperationSource
instances.Cache key generator.ACacheResolver
that forces the resolution to a configurable collection of name(s) against a givenCacheManager
.SimpleCacheOperationSource
implementation that allows attributes to be matched by registered name.A simpleCacheErrorHandler
that does not handle the exception at all, simply throwing it back at the client.A simpleCacheResolver
that resolves theCache
instance(s) based on a configurableCacheManager
and the name of the cache(s) as provided bygetCacheNames()
.A simple key as returned from theSimpleKeyGenerator
.Simple key generator.