Reputation: 153
When using ehcache, is there a way to expire cache on certain time of the day?
Thanks,
Lawardy
Upvotes: 2
Views: 975
Reputation: 340953
There is no such functionality out-of-the-box. You need an external solution like Quartz, also from Terracotta umbrella.
In fact, even normal timeToLive
parameter does not remove element in question after this time elapses, because this would required additional thread. Instead the item is removed when new one is to be added which takes its place.
Upvotes: 2