- build
Builds a cache, which either returns an already-loaded value for a given key or
atomically computes
- newBuilder
Constructs a new Caffeine instance with default settings, including strong keys,
strong values, and
- 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
- recordStats
Enables the accumulation of CacheStats during the operation of the cache.
Without this Cache#stats w
- 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
- executor
Specifies the executor to use when running asynchronous tasks. The executor is
delegated to when sen
- weigher
Specifies the weigher to use in determining the weight of entries. Entry weight
is taken into consid
- initialCapacity
Sets the minimum total size for the internal data structures. Providing a large
enough estimate at c
- maximumWeight
Specifies the maximum weight of entries the cache may contain. Weight is
determined using the Weighe
- from
Constructs a new Caffeine instance with the settings specified in spec.