Spring CacheManager
Let's look at the core interfaces and implementation classes that are used for configuring caching in a Spring caching framework. Spring CacheManager is actually an interface in the Spring's caching framework. The following is the list of classes that implement the CacheManager interface:
AbstractCacheManager
: This abstract class implements theCacheManager
interface. It is useful for static environments, where the backing caches do not change.CompositeCacheManager
: This is the compositeCacheManager
implementation that iterates over a given collection ofCacheManager
instances. It allowsNoOpCacheManager
to be automatically added to the list for handling the cache declarations without a backing store.ConcurrentMapCacheManager
: This is theCacheManager
implementation that lazily buildsConcurrentMapCache
instances for eachgetCache(java.lang.String)
request. It also supports a static mode where the set of cache names is predefined throughsetCacheNames(java.util.Collection...