- empty() - Static method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns a statistics instance where no cache events have been recorded.
- equals(Object) - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
-
- equals(Object) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
- estimatedSize() - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the approximate number of entries in this cache.
- eviction() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the maximum size or maximum weight eviction
policy.
- evictionCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the number of times an entry has been evicted.
- evictionWeight() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
-
Returns the sum of weights of evicted entries.
- executor(Executor) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies the executor to use when running asynchronous tasks.
- expireAfter(Expiry<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
Specifies that each entry should be automatically removed from the cache once a duration has
elapsed after the entry's creation, the most recent replacement of its value, or its last
read.
- expireAfterAccess(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
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
read.
- expireAfterAccess() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the time-to-idle expiration policy.
- expireAfterCreate(K, V, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after the entry's creation.
- expireAfterRead(K, V, long, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after its last read.
- expireAfterUpdate(K, V, long, long) - Method in interface com.github.benmanes.caffeine.cache.Expiry
-
Specifies that the entry should be automatically removed from the cache once the duration has
elapsed after the replacement of its value.
- expireAfterWrite(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
-
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.
- expireAfterWrite() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the time-to-live expiration policy.
- expireVariably() - Method in interface com.github.benmanes.caffeine.cache.Policy
-
Returns access to perform operations based on the variable expiration policy.
- Expiry<K,V> - Interface in com.github.benmanes.caffeine.cache
-
Calculates when cache entries expire.
- get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns the future associated with key
in this cache, obtaining that value from
mappingFunction
if necessary.
- get(K, BiFunction<? super K, Executor, CompletableFuture<V>>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns the future associated with key
in this cache, obtaining that value from
mappingFunction
if necessary.
- get(K) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
- get(K, Function<? super K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the value associated with the key
in this cache, obtaining that value from the
mappingFunction
if necessary.
- get(K) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
-
Returns the value associated with the
key
in this cache, obtaining that value from
CacheLoader.load(Object)
if necessary.
- getAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns the future of a map of the values associated with keys
, creating or retrieving
those values if necessary.
- getAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
-
Returns a map of the values associated with the keys
, creating or retrieving those
values if necessary.
- getAllPresent(Iterable<?>) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns a map of the values associated with the keys
in this cache.
- getExpiresAfter(TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
-
Returns the fixed duration used to determine if an entry should be automatically removed due
to elapsing this time bound.
- getExpiresAfter(K, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
-
Returns the duration until the entry should be automatically removed.
- getIfPresent(Object) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
-
Returns the future associated with key
in this cache, or null
if there is no
cached future for key
.
- getIfPresent(Object) - Method in interface com.github.benmanes.caffeine.cache.Cache
-
Returns the value associated with the key
in this cache, or null
if there is no
cached value for the key
.
- getMaximum() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
-
Returns the maximum total weighted or unweighted size of this cache, depending on how the
cache was constructed.
- guardedStatsCounter(StatsCounter) - Static method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
-
Returns an accumulator that suppresses and logs any exception thrown by the delegate
statsCounter.