Class SimpleCacheManager
java.lang.Object
org.springframework.cache.support.AbstractCacheManager
org.springframework.cache.support.SimpleCacheManager
- All Implemented Interfaces:
- 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.
- Since:
- 3.1
- Author:
- Costin Leau
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.springframework.cache.support.AbstractCacheManagerafterPropertiesSet, decorateCache, getCache, getCacheNames, getMissingCache, initializeCaches, lookupCache
- 
Constructor Details- 
SimpleCacheManagerpublic SimpleCacheManager()
 
- 
- 
Method Details- 
setCachesSpecify the collection of Cache instances to use for this CacheManager.- See Also:
 
- 
loadCachesDescription copied from class:AbstractCacheManagerLoad the initial caches for this cache manager.Called by AbstractCacheManager.afterPropertiesSet()on startup. The returned collection may be empty but must not benull.- Specified by:
- loadCachesin class- AbstractCacheManager
 
 
-