- build
Builds a cache, which either returns an already-loaded value for a given key or
atomically computes
- newBuilder
Constructs a new CacheBuilder instance with default settings, including strong
keys, strong values,
- maximumSize
Specifies the maximum number of entries the cache may contain. Note that the
cache may evict an entr
- expireAfterWrite
Specifies that each entry should be automatically removed from the cache once a
fixed duration has e
- expireAfterAccess
Specifies that each entry should be automatically removed from the cache once a
fixed duration has e
- removalListener
Specifies a listener instance that caches should notify each time an entry is
removed for any Remova
- concurrencyLevel
Guides the allowed concurrency among update operations. Used as a hint for
internal sizing. The tabl
- recordStats
Enable the accumulation of CacheStats during the operation of the cache. Without
this Cache#stats wi
- initialCapacity
Sets the minimum total size for the internal hash tables. For example, if the
initial capacity is 60
- refreshAfterWrite
Specifies that active entries are eligible for automatic refresh once a fixed
duration has elapsed a
- softValues
Specifies that each value (not key) stored in the cache should be wrapped in a
SoftReference (by def
- maximumWeight
Specifies the maximum weight of entries the cache may contain. Weight is
determined using the Weighe