spring-framework / org.springframework.cache.support / SimpleCacheManager

SimpleCacheManager

open class SimpleCacheManager : AbstractCacheManager

Simple cache manager working against a given collection of caches. Useful for testing or simple caching declarations.

Author
Costin Leau

Since
3.1

Constructors

<init>

SimpleCacheManager()

Simple cache manager working against a given collection of caches. Useful for testing or simple caching declarations.

Functions

setCaches

open fun setCaches(caches: MutableCollection<out Cache>): Unit

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

Inherited Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

getCache

open fun getCache(name: String): Cache

getCacheNames

open fun getCacheNames(): MutableCollection<String>

initializeCaches

open fun initializeCaches(): Unit

Initialize the static configuration of caches.

Triggered on startup through #afterPropertiesSet(); can also be called to re-initialize at runtime.