I want to cache elements only in the diskstore not in memory/ram, for this i have used following configuration, it stores the elements on disk but it doesn't expire/remove data from disk after 5 minutes.
<diskStore path="/global-cache" />
<cache name="globalCache"
maxElementsInMemory="0"
eternal="true"
timeToIdleSeconds="0"
diskSpoolBufferSizeMB="1"
diskPersistent="true"
timeToLiveSeconds="300"
diskExpiryThreadIntervalSeconds="120"
overflowToDisk="true"
memoryStoreEvictionPolicy="LFU" />
What i can do in the ehcache configuration which will expire elements from diskstore after specified time?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…