Reputation: 25102
Google guava allows to set expiration timeout for each map enty using CacheBuilder. However I want to set different timeout for each new enty. Is is possible?
Upvotes: 3
Views: 551
Reputation: 12692
This is not currently possible: expiration durations are set globally for the cache. You could create a feature request on the issue tracker, but exposing the right API for this might be complicated.
Upvotes: 3