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

AbstractCacheManager

abstract class AbstractCacheManager : CacheManager, InitializingBean

Abstract base class implementing the common CacheManager methods. Useful for 'static' environments where the backing caches do not change.

Author
Costin Leau

Author
Juergen Hoeller

Author
Stephane Nicoll

Since
3.1

Constructors

<init>

AbstractCacheManager()

Abstract base class implementing the common CacheManager methods. Useful for 'static' environments where the backing caches do not change.

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.

Inheritors

SimpleCacheManager

open class SimpleCacheManager : AbstractCacheManager

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