org.springframework.cache.interceptor

## 类 CacheInterceptor

- java.lang.Object
- - org.springframework.cache.interceptor.AbstractCacheInvoker
  - - org.springframework.cache.interceptor.CacheAspectSupport
    - - org.springframework.cache.interceptor.CacheInterceptor

- 所有已实现的接口:
    Serializable, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.SmartInitializingSingleton

      public class CacheInterceptor
      extends CacheAspectSupport
      implements org.aopalliance.intercept.MethodInterceptor, Serializable

  AOP Alliance MethodInterceptor for declarative cache management using the common Spring caching infrastructure (`Cache`).

  Derives from the `CacheAspectSupport` class which contains the integration with Spring's underlying caching API. CacheInterceptor simply calls the relevant superclass methods in the correct order.

  CacheInterceptors are thread-safe.

  从以下版本开始:
    3.1
  作者:
    Costin Leau, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 嵌套类概要

    - ### 从类继承的嵌套类/接口 org.springframework.cache.interceptor.CacheAspectSupport

      `CacheAspectSupport.CacheOperationContext, CacheAspectSupport.CacheOperationMetadata`

  - ### 字段概要

    - ### 从类继承的字段 org.springframework.cache.interceptor.CacheAspectSupport

      `logger`

  - ### 构造器概要

    构造器
    构造器和说明
    `CacheInterceptor()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `invoke(org.aopalliance.intercept.MethodInvocation invocation)`

    - ### 从类继承的方法 org.springframework.cache.interceptor.CacheAspectSupport

      `afterPropertiesSet, afterSingletonsInstantiated, clearMetadataCache, execute, getBean, getCacheOperationMetadata, getCacheOperationSource, getCacheResolver, getCaches, getKeyGenerator, getOperationContext, invokeOperation, methodIdentification, setBeanFactory, setCacheManager, setCacheOperationSources, setCacheResolver, setKeyGenerator`

    - ### 从类继承的方法 org.springframework.cache.interceptor.AbstractCacheInvoker

      `doClear, doEvict, doGet, doPut, getErrorHandler, setErrorHandler`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### CacheInterceptor

          public CacheInterceptor()

  - ### 方法详细资料

    - #### invoke

          @Nullable
          public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                                   throws Throwable

      指定者:
        `invoke` 在接口中 `org.aopalliance.intercept.MethodInterceptor`
      抛出:
        `Throwable`