Book Image

Mastering Spring Application Development

By : Anjana Mankale
Book Image

Mastering Spring Application Development

By: Anjana Mankale

Overview of this book

Table of Contents (19 chapters)
Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 the CacheManager interface. It is useful for static environments, where the backing caches do not change.

  • CompositeCacheManager: This is the composite CacheManager implementation that iterates over a given collection of CacheManager instances. It allows NoOpCacheManager to be automatically added to the list for handling the cache declarations without a backing store.

  • ConcurrentMapCacheManager: This is the CacheManager implementation that lazily builds ConcurrentMapCache instances for each getCache(java.lang.String) request. It also supports a static mode where the set of cache names is predefined through setCacheNames(java.util.Collection...