使用ehcache来优化缓存


在ehcache.xml中配置了 自己的一个cache

    <cache name="bos"
            maxElementsInMemory="10000"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            maxElementsOnDisk="10000000"
            diskExpiryThreadIntervalSeconds="120"
            memoryStoreEvictionPolicy="LRU">

多了下面这一句话....

 <persistence strategy="localTempSwap"/>
    </cache>


之后就报错了 



删除那一句 就正常了   


但是没有搞清楚 这一句是什么作用....

你可能感兴趣的:(使用ehcache来优化缓存)