spring-framework / org.springframework.cache.support

Package org.springframework.cache.support

Types

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.

CompositeCacheManager

open class CompositeCacheManager : CacheManager, InitializingBean

Composite CacheManager implementation that iterates over a given collection of delegate CacheManager instances.

Allows NoOpCacheManager to be automatically added to the end of the list for handling cache declarations without a backing store. Otherwise, any custom CacheManager may play that role of the last delegate as well, lazily creating cache regions for any requested name.

Note: Regular CacheManagers that this composite manager delegates to need to return null from #getCache(String) if they are unaware of the specified cache name, allowing for iteration to the next delegate in line. However, most CacheManager implementations fall back to lazy creation of named caches once requested; check out the specific configuration details for a 'static' mode with fixed cache names, if available.

NoOpCache

open class NoOpCache : Cache

A no operation Cache implementation suitable for disabling caching.

Will simply accept any items into the cache not actually storing them.

NoOpCacheManager

open class NoOpCacheManager : CacheManager

A basic, no operation CacheManager implementation suitable for disabling caching, typically used for backing cache declarations without an actual backing store.

Will simply accept any items into the cache not actually storing them.

NullValue

class NullValue : Serializable

Simple serializable class that serves as a null replacement for cache stores which otherwise do not support null values.

SimpleCacheManager

open class SimpleCacheManager : AbstractCacheManager

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

SimpleValueWrapper

open class SimpleValueWrapper : ValueWrapper

Straightforward implementation of org.springframework.cache.Cache.ValueWrapper, simply holding the value as given at construction and returning it from #get().