## 接口的使用
org.springframework.cache.interceptor.CacheResolver

- 使用CacheResolver的程序包
  程序包 | 说明
  --- | ---
  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中CacheResolver的使用

    声明为CacheResolver的org.springframework.cache.annotation中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected CacheResolver` | AbstractCachingConfiguration.`cacheResolver`

    返回CacheResolver的org.springframework.cache.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `CacheResolver` | CachingConfigurer.`cacheResolver()` Return the `CacheResolver` bean to use to resolve regular caches for annotation-driven cache management.
    `CacheResolver` | CachingConfigurerSupport.`cacheResolver()`

  - ### org.springframework.cache.interceptor中CacheResolver的使用

    实现CacheResolver的org.springframework.cache.interceptor中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractCacheResolver` A base `CacheResolver` implementation that requires the concrete implementation to provide the collection of cache name(s) based on the invocation context.
    `class` | `NamedCacheResolver` A `CacheResolver` that forces the resolution to a configurable collection of name(s) against a given `CacheManager`.
    `class` | `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()`

    返回CacheResolver的org.springframework.cache.interceptor中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `CacheResolver` | CacheAspectSupport.`getCacheResolver()` Return the default `CacheResolver` that this cache aspect delegates to.

    参数类型为CacheResolver的org.springframework.cache.interceptor中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Collection<? extends Cache>` | CacheAspectSupport.`getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver)`
    `void` | CacheAspectSupport.`setCacheResolver(CacheResolver cacheResolver)` Set the default `CacheResolver` that this cache aspect should delegate to if no specific cache resolver has been set for the operation.
    `void` | CacheProxyFactoryBean.`setCacheResolver(CacheResolver cacheResolver)` Set the default `CacheResolver` that this cache aspect should delegate to if no specific cache resolver has been set for the operation.

    参数类型为CacheResolver的org.springframework.cache.interceptor中的构造器
    构造器和说明
    `CacheOperationMetadata(CacheOperation operation, Method method, Class<?> targetClass, KeyGenerator keyGenerator, CacheResolver cacheResolver)`