Ehcache - objects are eternal or not

In my ehcache configuration, I see the following:

eternal="false"
timeToIdleSeconds="0"
timeToLiveSeconds="0"

What does this mean effectively?

The documentation mentions that timeToLiveSeconds = "0" means that these checks will not be performed. Thus, does this mean that objects will be eternal, even if eternal is set to false?

+5
source share
2 answers

If you look CacheConfiguration.java:826(my version of Ehcache is 2.6.5), you will see the following:

if (eternal) {
    setTimeToIdleSeconds(0);
    setTimeToLiveSeconds(0);
}

So this is essentially the same.

+10
source

"", true, TimeToIdle TimeToLive. false, . , setTimeToIdleSeconds (0) setTimeToLiveSeconds (0), ( 0 ).

+5

All Articles