[英]Storage overflowed Data of Ehcache into Redis server Cache
我在Play框架应用程序中使用ehcache作为堆上缓存机制。 我知道我们可以激活cacheToDisk配置,以便在缓存已满时将缓存项交换到磁盘。
我的问题是,当缓存已满时,如何将缓存条目交换到Redis Server缓存而不是diskStore。
这是我的ehcache配置:
<cache name="cache_1"
maxBytesLocalHeap="256000000"
eternal="false"
timeToIdleSeconds="180"
timeToLiveSeconds="180"
overflowToDisk="true"
maxElementsOnDisk="10000000"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="180"
statistics = "true"
memoryStoreEvictionPolicy="LFU">
<persistence strategy="localTempSwap" />
</cache>
<diskStore path="conf/cache_diskstore"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.