ehcache的磁盘存储中的元素未过期 [英] ehcache not expiring elements from diskstore
本文介绍了ehcache的磁盘存储中的元素未过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想在磁盘存储区中缓存元素,而不要在内存/内存中缓存元素,为此我使用了以下配置,它将元素存储在磁盘上,但是5分钟后它不会过期/从磁盘中删除数据.
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" />
我在ehcache配置中可以做什么,它将在指定时间后使磁盘存储中的元素过期?
What i can do in the ehcache configuration which will expire elements from diskstore after specified time?
推荐答案
查看全文