## 接口的使用
org.springframework.cache.CacheManager

- 使用CacheManager的程序包
  程序包 | 说明
  --- | ---
  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.interceptor | AOP-based solution for declarative caching demarcation.
  org.springframework.cache.support | Support classes for the org.springframework.cache package.

- - ### org.springframework.cache.annotation中CacheManager的使用

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

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

  - ### org.springframework.cache.concurrent中CacheManager的使用

    实现CacheManager的org.springframework.cache.concurrent中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ConcurrentMapCacheManager` `CacheManager` implementation that lazily builds `ConcurrentMapCache` instances for each `ConcurrentMapCacheManager.getCache(java.lang.String)` request.

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

    返回CacheManager的org.springframework.cache.interceptor中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `CacheManager` | AbstractCacheResolver.`getCacheManager()` Return the `CacheManager` that this instance uses.

    参数类型为CacheManager的org.springframework.cache.interceptor中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | AbstractCacheResolver.`setCacheManager(CacheManager cacheManager)` Set the `CacheManager` that this instance should use.
    `void` | CacheAspectSupport.`setCacheManager(CacheManager cacheManager)` Set the `CacheManager` to use to create a default `CacheResolver`.
    `void` | CacheProxyFactoryBean.`setCacheManager(CacheManager cacheManager)` Set the `CacheManager` to use to create a default `CacheResolver`.

    参数类型为CacheManager的org.springframework.cache.interceptor中的构造器
    构造器和说明
    `AbstractCacheResolver(CacheManager cacheManager)` Construct a new `AbstractCacheResolver` for the given `CacheManager`.
    `NamedCacheResolver(CacheManager cacheManager, String... cacheNames)`
    `SimpleCacheResolver(CacheManager cacheManager)`

  - ### org.springframework.cache.support中CacheManager的使用

    实现CacheManager的org.springframework.cache.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractCacheManager` Abstract base class implementing the common `CacheManager` methods.
    `class` | `CompositeCacheManager` Composite `CacheManager` implementation that iterates over a given collection of delegate `CacheManager` instances.
    `class` | `NoOpCacheManager` A basic, no operation `CacheManager` implementation suitable for disabling caching, typically used for backing cache declarations without an actual backing store.
    `class` | `SimpleCacheManager` Simple cache manager working against a given collection of caches.

    类型变量类型为CacheManager的org.springframework.cache.support中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | CompositeCacheManager.`setCacheManagers(Collection<CacheManager> cacheManagers)` Specify the CacheManagers to delegate to.

    参数类型为CacheManager的org.springframework.cache.support中的构造器
    构造器和说明
    `CompositeCacheManager(CacheManager... cacheManagers)` Construct a CompositeCacheManager from the given delegate CacheManagers.