Product Documentation : Ehcache Developer Guide : Cache Loaders : Declarative Configuration
Declarative Configuration
The cacheLoaderFactory element specifies a CacheLoader, which can be used both asynchronously and synchronously to load objects into a cache.
<cache ...>
<cacheLoaderFactory class="com.example.ExampleCacheLoaderFactory"
properties="type=int,startCounter=10"/>
</cache>
More than one cacheLoaderFactory element can be added, in which case the loaders form a chain which are executed in order. If a loader returns null, the next in chain is called.
Copyright © 2014 Software AG, Darmstadt, Germany.

Product Logo |   Feedback