4 ms·
Guava cache's successor, Caffeine [1], handles the asynchronous case. In your scenario, you could set a timeout on the future as the entry will be discarded if
by NovaX 8y ago
Guava cache's successor, Caffeine [1], handles the asynchronous case. In your scenario, you could set a timeout on the future as the entry will be discarded if the future results in an error.
[1] https://github.com/ben-manes/caffeine/wiki/Population https://github.com/ben-manes/caffeine/wiki/Population