About the Key Classes
Ehcache consists of a CacheManager, which manages logical data sets represented as Caches. A Cache object contains Elements, which are essentially name-value pairs. You can use Cache objects to hold any kind of data that you want to keep in memory, not just data that you want to cache.
Caches are physically implemented, either in-memory or on disk . The logical representations of these components are actualized mostly through the following classes:
CacheManager
Cache
Element
These classes form the core of the Ehcache API. The methods provided by these classes are largely responsible for providing programmatic access to a cache or in-memory data store.