Quantcast
Channel: User Jonathan - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Answer by Jonathan for Designing a Guava LoadingCache with variable entry expiry

$
0
0

Another alternative is my ExpiringMap (I'm the author), which supports variable entry expiration:

Map<String, String> map = ExpiringMap.builder().variableExpiration().build();map.put("foo", "bar", ExpirationPolicy.ACCESSED, 5, TimeUnit.MINUTES);map.put("baz", "pez", ExpirationPolicy.CREATED, 10, TimeUnit.MINUTES);

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>