I have an ehcache setting that works fine, except that the permanent drive data is deleted every time I restart the application / server (Spring application on TcServer / Tomcat). The whole point of using persistent disk storage was to keep the cache, despite restarting the application.
Here is my ehcache.xml
<?xml version="1.0" encoding="UTF-8"?><ehcache><diskStore path="java.io.tmpdir/ehcache"/><cache name="clusterCache" maxElementsInMemory="1" maxElementsOnDisk="50" eternal="true" overflowToDisk="true" diskPersistent="true" memoryStoreEvictionPolicy="LFU"/></ehcache>
Any ideas why this is happening?
java ehcache
chrismarx
source share