Product Documentation : Ehcache Developer Guide : Cache Extensions : Declarative Configuration
Declarative Configuration
Cache extensions are configured per cache. Each cache can have zero or more.
You configure a cache extension by adding a cacheExceptionHandlerFactory element as shown in the following example:
<cache ...>
<cacheExtensionFactory
     class="com.example.FileWatchingCacheRefresherExtensionFactory"
properties="refreshIntervalMillis=18000, loaderTimeout=3000,
     flushPeriod=whatever, someOtherProperty=someValue ..."/>
</cache>
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback