Alexey Zakharov
Alexey Zakharov

Reputation: 25102

How to set different expiration timeout for each new map entry using Google Guava?

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

Answers (1)

Etienne Neveu
Etienne Neveu

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

Related Questions