-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
It would be great to be able to use "expire after access" in addition to the already implemented "expire after write" found in ConcurrentTlru.
My use case is resource optimization of unloading unused values, not cache duration which is what I have used the "expire after write" implementation for recently. If I use the "expire after write" implementation I end up running the same expensive loading code more often.
I could use the plain LRU but then I am always keeping close to capacity in memory which is results in high resource use.
Caffeine provides expireAfterAccess for the same scenarios: https://github.com/ben-manes/caffeine/wiki/Eviction#time-based
bitfaster
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request