org.springframework.cache.support

## 类 SimpleCacheManager

- java.lang.Object
- - org.springframework.cache.support.AbstractCacheManager
  - - org.springframework.cache.support.SimpleCacheManager

- 所有已实现的接口:
    org.springframework.beans.factory.InitializingBean, CacheManager

      public class SimpleCacheManager
      extends AbstractCacheManager

  Simple cache manager working against a given collection of caches. Useful for testing or simple caching declarations.
  从以下版本开始:
    3.1
  作者:
    Costin Leau

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Collection<? extends Cache>` | `loadCaches()` Load the initial caches for this cache manager.
    `void` | `setCaches(Collection<? extends Cache> caches)` Specify the collection of Cache instances to use for this CacheManager.

    - ### 从类继承的方法 org.springframework.cache.support.AbstractCacheManager

      `addCache, afterPropertiesSet, decorateCache, getCache, getCacheNames, getMissingCache, initializeCaches, lookupCache`

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

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

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

    - #### SimpleCacheManager

          public SimpleCacheManager()

  - ### 方法详细资料

    - #### setCaches

          public void setCaches(Collection<? extends Cache> caches)

      Specify the collection of Cache instances to use for this CacheManager.

    - #### loadCaches

          protected Collection<? extends Cache> loadCaches()

      从类复制的说明: `AbstractCacheManager`
      Load the initial caches for this cache manager.

      Called by `AbstractCacheManager.afterPropertiesSet()` on startup. The returned collection may be empty but must not be `null`.

      指定者:
        `loadCaches` 在类中 `AbstractCacheManager`