AsyncLoadingCache
.key
.key
.keys
.keys
.key
.key
.CacheLoader
.CompletableFuture
already loaded or currently
computing the value for a given key, or atomically computes the value asynchronously through a
supplied mapping function or the supplied CacheLoader
.CompletableFuture
already loaded or currently
computing the value for a given key, or atomically computes the value asynchronously through a
supplied mapping function or the supplied AsyncCacheLoader
.LoadingCache
or
AsyncLoadingCache
.Cache
.CacheStats
instance.AsyncLoadingCache
, LoadingCache
, and Cache
instances
having a combination of the following features:
automatic loading of entries into the cache, optionally asynchronously
size-based eviction when a maximum is exceeded based on frequency and recency
time-based expiration of entries, measured since last access or last write
asynchronously refresh when the first stale request for an entry occurs
keys automatically wrapped in weak references
values automatically wrapped in weak or
soft references
writes propagated to an external resource
notification of evicted (or otherwise removed) entries
accumulation of cache access statistics
Caffeine
builder configuration.Map
view of the cache with ordered traversal.StatsCounter
implementation for use by Cache
implementors.key
from the external resource.0
.Caffeine
instance with the settings specified in spec
.Caffeine
instance with the settings specified in spec
.key
in this cache, obtaining that value from
mappingFunction
if necessary.key
in this cache, obtaining that value from
mappingFunction
if necessary.key
in this cache, obtaining that value from
CacheLoader.asyncLoad(K, java.util.concurrent.Executor)
if necessary.key
in this cache, obtaining that value from
mappingFunction
if necessary.key
in this cache, obtaining that value from
CacheLoader.load(Object)
if necessary.keys
, creating or retrieving
those values if necessary.keys
, creating or retrieving those values
if necessary.keys
in this cache.key
in this cache, or null
if there is no
cached future for key
.key
in this cache, or null
if there is no
cached value for key
.Cache
lookup methods have returned a cached value.Map
view of the cache with ordered traversal.other
.key
.keys
.key
.keys
.Cache
lookup methods attempted to load new
values.Cache
lookup methods failed to load a new value, either
because no value was found or an exception was thrown while loading.Cache
lookup methods have successfully loaded a new value.CacheStats
representing the difference between this CacheStats
and other
.Cache
lookup methods have returned an uncached (newly
loaded) value, or null.Caffeine
instance with default settings, including strong keys, strong
values, and no automatic eviction of any kind.Map
view of the cache with ordered traversal.CacheStats
representing the sum of this CacheStats
and
other
.value
with key
in this cache.value
with key
in this cache.CacheStats
during the operation of the cache.CacheStats
during the operation of the cache.key
, asynchronously.key
.Cache
lookup methods have returned either a cached or
uncached value.1
.SoftReference
(by default, strong references are used).Cache
for presentation by
Cache.stats()
.LoadingCache
.System.nanoTime()
.CaffeineSpec
.CaffeineSpec
instance.Unsafe
and convenient utility methods for performing low-level, unsafe
operations.true
if there was an automatic removal due to eviction (the cause is neither
RemovalCause.EXPLICIT
nor RemovalCause.REPLACED
).WeakReference
(by default, strong references are used).WeakReference
(by default, strong references are used).key
to the external resource.Map
view of the cache with ordered traversal.