When Google Guava Caching Expires

I would like to know the default Guava caching expiration policy. I need to write once and read many times. The cache should not expire. Is this the default behavior of Guava?

+6
source share
1 answer

Assuming you're talking about CacheBuilder

From Google Docs

By default, cache instances created by CacheBuilder will not perform any evictions.

+11
source

Source: https://habr.com/ru/post/975734/


All Articles