Is there any built LRU Memory cache class in scala with a size limit and key eviction based on LRU/LFU? I've tried https://doc.akka.io/docs/akka-http/current/common/caching.html but it seems to be a bit complicated with wrapped futures.
Thanks.
Is there any built LRU Memory cache class in scala with a size limit and key eviction based on LRU/LFU? I've tried https://doc.akka.io/docs/akka-http/current/common/caching.html but it seems to be a bit complicated with wrapped futures.
Thanks.
Caffeine should be a good way to do that : https://github.com/ben-manes/caffeine