Hibernate / Hibernate Caching
Difference between time to live and time to idle in Ehcache.
timeToIdleSeconds enables cached object to be invalidated if it has not been requested for specified ('timeToIdleSeconds' ) seconds.
timeToLiveSeconds enables cached object to be invalidated after that many seconds regardless of how many times or when cache was requested last time.
Note that the eternal attribute, when set to 'true', overrides timeToLive and timeToIdle so that no expiration can take place.
More Related questions...