类 SimpleCacheManager
- java.lang.Object
- org.springframework.cache.support.AbstractCacheManager
- org.springframework.cache.support.SimpleCacheManager
- 所有已实现的接口:
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
构造器详细资料
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 benull
.- 指定者:
loadCaches
在类中AbstractCacheManager