# 程序包的使用
org.springframework.cache.interceptor

- 使用org.springframework.cache.interceptor的程序包
  程序包 | 说明
  --- | ---
  org.springframework.cache.annotation | Annotations and supporting classes for declarative cache management.
  org.springframework.cache.interceptor | AOP-based solution for declarative caching demarcation.

- org.springframework.cache.annotation使用的org.springframework.cache.interceptor中的类
  类和说明
  AbstractFallbackCacheOperationSource Abstract implementation of `CacheOperation` that caches attributes for methods and implements a fallback policy: 1. specific target method; 2. target class; 3. declaring method; 4. declaring class/interface.
  BeanFactoryCacheOperationSourceAdvisor Advisor driven by a `CacheOperationSource`, used to include a cache advice bean for methods that are cacheable.
  CacheErrorHandler A strategy for handling cache-related errors.
  CacheInterceptor AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (`Cache`).
  CacheOperation Base class for cache operations.
  CacheOperationSource Interface used by `CacheInterceptor`.
  CacheResolver Determine the `Cache` instance(s) to use for an intercepted method invocation.
  KeyGenerator Cache key generator.

- org.springframework.cache.interceptor使用的org.springframework.cache.interceptor中的类
  类和说明
  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.
  BasicOperation The base interface that all cache operations must implement.
  CacheableOperation Class describing a cache 'cacheable' operation.
  CacheableOperation.Builder
  CacheAspectSupport Base class for caching aspects, such as the `CacheInterceptor` or an AspectJ aspect.
  CacheAspectSupport.CacheOperationContext A `CacheOperationInvocationContext` context for a `CacheOperation`.
  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
  CacheOperation Base class for cache operations.
  CacheOperation.Builder
  CacheOperationInvocationContext 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`.
  CachePutOperation Class describing a cache 'put' operation.
  CachePutOperation.Builder
  CacheResolver Determine the `Cache` instance(s) to use for an intercepted method invocation.
  KeyGenerator Cache key generator.
  SimpleKey A simple key as returned from the `SimpleKeyGenerator`.