srinannapa
srinannapa

Reputation: 3207

Default expiration of Google Guava Caching

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

Upvotes: 12

Views: 10175

Answers (1)

Assuming you are talking about CacheBuilder

From the Google docs

By default cache instances created by CacheBuilder will not perform any type of eviction.

Upvotes: 21

Related Questions