I am trying to get EHCache to mark cache items as expired if they were not available in a certain way for a certain period of time.
I have an automatic cache update that should update items in the cache without updating the last access time. He works on a regular schedule. However, if the user requests something from the cache through the application, the last access time should be updated. Items must expire and be removed from the cache after a week of user inactivity.
Does EHCache have something already in place that could solve this problem? I see the putQuiet and getQuiet methods , but I don’t see an explicit mention of them without updating the last access time. Also, is there any real difference between the timeToLiveSeconds and timeToIdleSeconds parameters?
Thanks Mike
source share