Javadoc

Cache is the central class in ehcache. Caches have
Elements and are managed
by the
CacheManager. The Cache performs logical actions. It delegates physical
implementations to its
net.sf.ehcache.store.Stores.

A reference to a Cache can be obtained through the
CacheManager. A Cache thus obtained
is guaranteed to have status
Status#STATUS_ALIVE. This status is checked for any method which
throws
IllegalStateException and the same thrown if it is not alive. This would normally
happen if a call is made after
CacheManager#shutdown is invoked.

Cache is threadsafe.

Statistics on cache usage are collected and made available through the
#getStatistics() methods.

Various decorators are available for Cache, such as BlockingCache, SelfPopulatingCache and the dynamic proxy
ExceptionHandlingDynamicCacheProxy. See each class for details.