ehcache2.5
通过Cache获取一个Element时总是会更新元素的lastaccesstime,
我在ehcache.xml中配置了
timeToIdleSeconds为120,
timeToLiveSeconds为0,这样元素空闲120秒就失效了
但有时候我查看元素时我不想影响元素的失效时间,
用了getQuiet方法似乎还是会更新lastaccesstime,有没有办法能让获取element的时候不更新lastaccesstime?
ehcache2.5
通过Cache获取一个Element时总是会更新元素的lastaccesstime,
我在ehcache.xml中配置了
timeToIdleSeconds为120,
timeToLiveSeconds为0,这样元素空闲120秒就失效了
但有时候我查看元素时我不想影响元素的失效时间,
用了getQuiet方法似乎还是会更新lastaccesstime,有没有办法能让获取element的时候不更新lastaccesstime?