I am using ehcache entreprise 2.7 with large memory. I want to have a cache that overflows to disk when it is full. And I want this cache to be persistent with a restart.
My current configuration is as follows:
<cache name="dataservice" eternal="true" maxEntriesLocalHeap="1" overflowToOffHeap="true" maxBytesLocalOffHeap="60M"> <persistence strategy="localRestartable"/> </cache>
This configuration makes the cache persistent by restarting (and it works very well), but it does not seem to overflow to disk. I really want to use "localRestartable" as it works much better than the old diskPersistent = "true" attribute. "localRestartable" is incompatible with the overflowToDisk = "true" attribute ...
Any idea on how I can overlap my cache to disk?
source share