Product Documentation : Ehcache Developer Guide : Cache Extensions : Programmatic Configuration
Programmatic Configuration
Cache extensions can also be programmatically added to a Cache as shown below:
TestCacheExtension testCacheExtension = new TestCacheExtension(cache, ...);
testCacheExtension.init();
cache.registerCacheExtension(testCacheExtension);
Copyright © 2010-2017 Software AG, Darmstadt, Germany.

Product Logo |   Feedback