# 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.

Related Packages
Package
Description
org.springframework.cache
Spring's generic cache abstraction.
org.springframework.cache.annotation
Annotations and supporting classes for declarative cache management.
org.springframework.cache.concurrent
Implementation package for `java.util.concurrent` based caches.
org.springframework.cache.config
Support package for declarative caching configuration, with XML schema being the primary configuration format.
org.springframework.cache.support
Support classes for the org.springframework.cache package.
Class
Description
AbstractCacheInvoker
A base component for invoking `Cache` operations and using a configurable `CacheErrorHandler` when an exception occurs.
AbstractCacheResolver
A base `CacheResolver` implementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.
AbstractFallbackCacheOperationSource
Abstract implementation of `CacheOperationSource` that caches operations for methods and implements a fallback policy: 1.
BasicOperation
The base interface that all cache operations must implement.
BeanFactoryCacheOperationSourceAdvisor
Advisor driven by a `CacheOperationSource`, used to include a cache advice bean for methods that are cacheable.
CacheableOperation
Class describing a cache 'cacheable' operation.
CacheableOperation.Builder
A builder that can be used to create a `CacheableOperation`.
CacheAspectSupport
Base class for caching aspects, such as the `CacheInterceptor` or an AspectJ aspect.
CacheAspectSupport.CacheOperationMetadata
Metadata of a cache operation that does not depend on a particular invocation which makes it a good candidate for caching.
CacheErrorHandler
A strategy for handling cache-related errors.
CacheEvictOperation
Class describing a cache 'evict' operation.
CacheEvictOperation.Builder
A builder that can be used to create a `CacheEvictOperation`.
CacheInterceptor
AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (`Cache`).
CacheOperation
Base class for cache operations.
CacheOperation.Builder
Base class for builders that can be used to create a `CacheOperation`.
CacheOperationInvocationContext<O extends BasicOperation>
Representation of the context of the invocation of a cache operation.
CacheOperationInvoker
Abstract the invocation of a cache operation.
CacheOperationInvoker.ThrowableWrapper
Wrap any exception thrown while invoking `CacheOperationInvoker.invoke()`.
CacheOperationSource
Interface used by `CacheInterceptor`.
CacheProxyFactoryBean
Proxy factory bean for simplified declarative caching handling.
CachePutOperation
Class describing a cache 'put' operation.
CachePutOperation.Builder
A builder that can be used to create a `CachePutOperation`.
CacheResolver
Determine the `Cache` instance(s) to use for an intercepted method invocation.
CompositeCacheOperationSource
Composite `CacheOperationSource` implementation that iterates over a given array of `CacheOperationSource` instances.
KeyGenerator
Cache key generator.
LoggingCacheErrorHandler
A `CacheErrorHandler` implementation that logs error messages.
NamedCacheResolver
A `CacheResolver` that forces the resolution to a configurable collection of name(s) against a given `CacheManager`.
NameMatchCacheOperationSource
Simple `CacheOperationSource` implementation that allows attributes to be matched by registered name.
SimpleCacheErrorHandler
A simple `CacheErrorHandler` that does not handle the exception at all, simply throwing it back at the client.
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()`.
SimpleKey
A simple key as returned from the `SimpleKeyGenerator`.
SimpleKeyGenerator
Simple key generator.