类 SimpleCacheManager
java.lang.Object
cn.taketoday.cache.support.AbstractCacheManager
cn.taketoday.cache.support.SimpleCacheManager
- 所有已实现的接口:
InitializingBean,CacheManager
Simple cache manager working against a given collection of caches.
Useful for testing or simple caching declarations.
When using this implementation directly, i.e. not via a regular
bean registration, AbstractCacheManager.initializeCaches() should be invoked
to initialize its internal state once the
caches have been provided.
- 从以下版本开始:
- 2019-11-03 19:45
- 作者:
- Costin Leau, TODAY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected Collection<? extends Cache>Load the initial caches for this cache manager.voidsetCaches(Collection<? extends Cache> caches) Specify the collection of Cache instances to use for this CacheManager.从类继承的方法 cn.taketoday.cache.support.AbstractCacheManager
afterPropertiesSet, decorateCache, getCache, getCacheNames, getMissingCache, initializeCaches, lookupCache
-
构造器详细资料
-
SimpleCacheManager
public SimpleCacheManager()
-
-
方法详细资料
-
setCaches
Specify the collection of Cache instances to use for this CacheManager. -
loadCaches
从类复制的说明:AbstractCacheManagerLoad 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
-