Ehcache 2.10.8 | Product Documentation | Ehcache Developer Guide | Cache Decorators | About Cache Decorators
 
About Cache Decorators
Ehcache uses the Ehcache interface, of which Cache is an implementation. It is possible and encouraged to create Ehcache decorators that are backed by a Cache instance, implement Ehcache and provide extra functionality.
The Decorator pattern is one of the well known Gang of Four patterns.
Decorated caches are accessed from the CacheManager using CacheManager.getEhcache(String name). Note that, for backward compatibility, CacheManager.getCache(String name) has been retained. However only CacheManager.getEhcache(String name) returns the decorated cache.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release