Guides the allowed concurrency among update operations.
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, the most recent replacement of its value, or its last
access.
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, the most recent replacement of its value, or its last
access.
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, or the most recent replacement of its value.
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, or the most recent replacement of its value.
Constructs a new CacheBuilder
instance with the settings specified in spec
.
Constructs a new CacheBuilder
instance with the settings specified in spec
.
Sets the minimum total size for the internal hash tables.
Specifies the maximum number of entries the cache may contain.
Specifies the maximum weight of entries the cache may contain.
Constructs a new CacheBuilder
instance with default settings, including strong keys,
strong values, and no automatic eviction of any kind.
Enable the accumulation of
CacheStats
during the operation of the cache.
Specifies that active entries are eligible for automatic refresh once a fixed duration has
elapsed after the entry's creation, or the most recent replacement of its value.
Specifies that active entries are eligible for automatic refresh once a fixed duration has
elapsed after the entry's creation, or the most recent replacement of its value.
Specifies a listener instance that caches should notify each time an entry is removed for any
reason.
Specifies that each value (not key) stored in the cache should be wrapped in a
SoftReference
(by default, strong references are used).
Specifies a nanosecond-precision time source for this cache.
Specifies that each key (not value) stored in the cache should be wrapped in a
WeakReference
(by default, strong references are used).
Specifies that each value (not key) stored in the cache should be wrapped in a
WeakReference
(by default, strong references are used).
Specifies the weigher to use in determining the weight of entries.