Skip navigation links
A B C D E F G H I L M N O P R S T U V W Y 

A

add(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
addAll(Collection<? extends E>) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
ageOf(K, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns the age of the entry based on the expiration policy.
asMap() - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns a view of the entries stored in this cache as a thread-safe map.
AsyncCacheLoader<K,V> - Interface in com.github.benmanes.caffeine.cache
Computes or retrieves values asynchronously, based on a key, for use in populating a AsyncLoadingCache.
asyncLoad(K, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
Asynchronously computes or retrieves the value corresponding to key.
asyncLoad(K, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Asynchronously computes or retrieves the value corresponding to key.
asyncLoadAll(Iterable<? extends K>, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
Asynchronously computes or retrieves the values corresponding to keys.
asyncLoadAll(Iterable<? extends K>, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Asynchronously computes or retrieves the values corresponding to keys.
AsyncLoadingCache<K,V> - Interface in com.github.benmanes.caffeine.cache
A semi-persistent mapping from keys to values.
asyncReload(K, V, Executor) - Method in interface com.github.benmanes.caffeine.cache.AsyncCacheLoader
Asynchronously computes or retrieves a replacement value corresponding to an already-cached key.
asyncReload(K, V, Executor) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Asynchronously computes or retrieves a replacement value corresponding to an already-cached key.
averageLoadPenalty() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the average time spent loading new values.

B

boundedWeigher(Weigher<K, V>) - Static method in interface com.github.benmanes.caffeine.cache.Weigher
Returns a weigher that enforces that the weight is non-negative.
build() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache which does not automatically load values when keys are requested.
build(CacheLoader<? super K1, V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache, which either returns an already-loaded value for a given key or atomically computes or retrieves it using the supplied CacheLoader.
buildAsync(CacheLoader<? super K1, V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache, which either returns a 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.
buildAsync(AsyncCacheLoader<? super K1, V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Builds a cache, which either returns a 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.

C

Cache<K,V> - Interface in com.github.benmanes.caffeine.cache
A semi-persistent mapping from keys to values.
CacheLoader<K,V> - Interface in com.github.benmanes.caffeine.cache
Computes or retrieves values, based on a key, for use in populating a LoadingCache or AsyncLoadingCache.
CacheStats - Class in com.github.benmanes.caffeine.cache.stats
Statistics about the performance of a Cache.
CacheStats(long, long, long, long, long, long) - Constructor for class com.github.benmanes.caffeine.cache.stats.CacheStats
Deprecated.
This constructor is scheduled for removal in version 3.0.0.
CacheStats(long, long, long, long, long, long, long) - Constructor for class com.github.benmanes.caffeine.cache.stats.CacheStats
Constructs a new CacheStats instance.
CacheWriter<K,V> - Interface in com.github.benmanes.caffeine.cache
Communicates the write or deletion of a value, based on a key, to an external resource.
Caffeine<K,V> - Class in com.github.benmanes.caffeine.cache
A builder of 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
CaffeineSpec - Class in com.github.benmanes.caffeine.cache
A specification of a Caffeine builder configuration.
cleanUp() - Method in interface com.github.benmanes.caffeine.cache.Cache
Performs any pending maintenance operations needed by the cache.
coldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
com.github.benmanes.caffeine - package com.github.benmanes.caffeine
Utility classes commonly useful in concurrent programming.
com.github.benmanes.caffeine.base - package com.github.benmanes.caffeine.base
Basic utility libraries and interfaces.
com.github.benmanes.caffeine.cache - package com.github.benmanes.caffeine.cache
This package contains caching utilities.
com.github.benmanes.caffeine.cache.stats - package com.github.benmanes.caffeine.cache.stats
This package contains caching statistic utilities.
ConcurrentStatsCounter - Class in com.github.benmanes.caffeine.cache.stats
A thread-safe StatsCounter implementation for use by Cache implementors.
ConcurrentStatsCounter() - Constructor for class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Constructs an instance with all counts initialized to zero.
contains(Object) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 

D

delete(K, V, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Deletes the value corresponding to the key from the external resource.
disabledStatsCounter() - Static method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Returns an accumulator that does not record any cache events.
disabledTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
Returns a ticker that always returns 0.
disabledWriter() - Static method in interface com.github.benmanes.caffeine.cache.CacheWriter
Returns a writer that does nothing.

E

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.

F

from(CaffeineSpec) - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with the settings specified in spec.
from(String) - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with the settings specified in spec.

G

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
Returns the future associated with key in this cache, obtaining that value from CacheLoader.asyncLoad(K, java.util.concurrent.Executor) if necessary.
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.

H

hashCode() - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
 
hashCode() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
hitCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have returned a cached value.
hitRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache requests which were hits.
hottest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.

I

incrementBy(StatsCounter) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
Increments all counters by the values in other.
initialCapacity(int) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Sets the minimum total size for the internal data structures.
invalidate(Object) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached value for the key.
invalidateAll(Iterable<?>) - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards any cached values for the keys.
invalidateAll() - Method in interface com.github.benmanes.caffeine.cache.Cache
Discards all entries in the cache.
isEmpty() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
isRecordingStats() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns whether the cache statistics are being accumulated.
isWeighted() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns whether the cache is bounded by a maximum size or maximum weight.
iterator() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 

L

linearizable() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Creates a queue with a linearizable backoff strategy.
load(K) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves the value corresponding to key.
loadAll(Iterable<? extends K>) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves the values corresponding to keys.
loadCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the total number of times that Cache lookup methods attempted to load new values.
loadFailureCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods failed to load a new value, either because no value was found or an exception was thrown while loading.
loadFailureRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache loading attempts which threw exceptions.
LoadingCache<K,V> - Interface in com.github.benmanes.caffeine.cache
A semi-persistent mapping from keys to values.
loadSuccessCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have successfully loaded a new value.

M

maximumSize(long) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the maximum number of entries the cache may contain.
maximumWeight(long) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the maximum weight of entries the cache may contain.
minus(CacheStats) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns a new CacheStats representing the difference between this CacheStats and other.
missCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have returned an uncached (newly loaded) value, or null.
missRate() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the ratio of cache requests which were misses.

N

newBuilder() - Static method in class com.github.benmanes.caffeine.cache.Caffeine
Constructs a new Caffeine instance with default settings, including strong keys, strong values, and no automatic eviction of any kind.

O

objectFieldOffset(Class<?>, String) - Static method in class com.github.benmanes.caffeine.base.UnsafeAccess
Returns the location of a given static field.
offer(E) - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
oldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
oldest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
onRemoval(K, V, RemovalCause) - Method in interface com.github.benmanes.caffeine.cache.RemovalListener
Notifies the listener that a removal occurred at some point in the past.
optimistic() - Static method in class com.github.benmanes.caffeine.SingleConsumerQueue
Creates a queue with an optimistic backoff strategy.

P

parse(String) - Static method in class com.github.benmanes.caffeine.cache.CaffeineSpec
Creates a CaffeineSpec from a string.
peek() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
plus(CacheStats) - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns a new CacheStats representing the sum of this CacheStats and other.
policy() - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns access to inspect and perform low-level operations on this cache based on its runtime characteristics.
Policy<K,V> - Interface in com.github.benmanes.caffeine.cache
An access point for inspecting and performing low-level operations based on the cache's runtime characteristics.
Policy.Eviction<K,V> - Interface in com.github.benmanes.caffeine.cache
The low-level operations for a cache with a size-based eviction policy.
Policy.Expiration<K,V> - Interface in com.github.benmanes.caffeine.cache
The low-level operations for a cache with a fixed expiration policy.
Policy.VarExpiration<K,V> - Interface in com.github.benmanes.caffeine.cache
The low-level operations for a cache with a variable expiration policy.
poll() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
put(K, CompletableFuture<V>) - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Associates value with key in this cache.
put(K, V) - Method in interface com.github.benmanes.caffeine.cache.Cache
Associates the value with the key in this cache.
put(K, V, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Associates the value with the key in this cache.
putAll(Map<? extends K, ? extends V>) - Method in interface com.github.benmanes.caffeine.cache.Cache
Copies all of the mappings from the specified map to the cache.
putIfAbsent(K, V, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Associates the value with the key in this cache if the specified key is not already associated with a value.

R

read() - Method in interface com.github.benmanes.caffeine.cache.Ticker
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
recordEviction() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordEviction(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordEviction() - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Deprecated.
Use StatsCounter.recordEviction(int) instead. This method is scheduled for removal in version 3.0.0.
recordEviction(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records the eviction of an entry from the cache.
recordHits(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordHits(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records cache hits.
recordLoadFailure(long) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordLoadFailure(long) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records the failed load of a new entry.
recordLoadSuccess(long) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordLoadSuccess(long) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records the successful load of a new entry.
recordMisses(int) - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
recordMisses(int) - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Records cache misses.
recordStats() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Enables the accumulation of CacheStats during the operation of the cache.
recordStats(Supplier<? extends StatsCounter>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Enables the accumulation of CacheStats during the operation of the cache.
refresh(K) - Method in interface com.github.benmanes.caffeine.cache.LoadingCache
Loads a new value for the key, asynchronously.
refreshAfterWrite(long, TimeUnit) - Method in class com.github.benmanes.caffeine.cache.Caffeine
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.
refreshAfterWrite() - Method in interface com.github.benmanes.caffeine.cache.Policy
Returns access to perform operations based on the time-to-live refresh policy.
reload(K, V) - Method in interface com.github.benmanes.caffeine.cache.CacheLoader
Computes or retrieves a replacement value corresponding to an already-cached key.
RemovalCause - Enum in com.github.benmanes.caffeine.cache
The reason why a cached entry was removed.
removalListener(RemovalListener<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a listener instance that caches should notify each time an entry is removed for any reason.
RemovalListener<K,V> - Interface in com.github.benmanes.caffeine.cache
An object that can receive a notification when an entry is removed from a cache.
requestCount() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the number of times Cache lookup methods have returned either a cached or uncached value.

S

setExpiresAfter(long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed.
setExpiresAfter(K, long, TimeUnit) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Specifies that the entry should be automatically removed from the cache once the duration has elapsed.
setMaximum(long) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Specifies the maximum total size of this cache.
SingleConsumerQueue<E> - Class in com.github.benmanes.caffeine
A lock-free unbounded queue based on linked nodes that supports concurrent producers and is restricted to a single consumer.
singletonWeigher() - Static method in interface com.github.benmanes.caffeine.cache.Weigher
Returns a weigher where an entry has a weight of 1.
size() - Method in class com.github.benmanes.caffeine.SingleConsumerQueue
 
snapshot() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
snapshot() - Method in interface com.github.benmanes.caffeine.cache.stats.StatsCounter
Returns a snapshot of this counter's values.
softValues() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).
stats() - Method in interface com.github.benmanes.caffeine.cache.Cache
Returns a current snapshot of this cache's cumulative statistics.
StatsCounter - Interface in com.github.benmanes.caffeine.cache.stats
Accumulates statistics during the operation of a Cache for presentation by Cache.stats().
synchronous() - Method in interface com.github.benmanes.caffeine.cache.AsyncLoadingCache
Returns a view of the entries stored in this cache as a synchronous LoadingCache.
systemTicker() - Static method in interface com.github.benmanes.caffeine.cache.Ticker
Returns a ticker that reads the current time using System.nanoTime().

T

ticker(Ticker) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a nanosecond-precision time source for use in determining when entries should be expired or refreshed.
Ticker - Interface in com.github.benmanes.caffeine.cache
A time source that returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
toParsableString() - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
Returns a string that can be used to parse an equivalent CaffeineSpec.
toString() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Returns a string representation for this Caffeine instance.
toString() - Method in class com.github.benmanes.caffeine.cache.CaffeineSpec
Returns a string representation for this CaffeineSpec instance.
toString() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
 
toString() - Method in class com.github.benmanes.caffeine.cache.stats.ConcurrentStatsCounter
 
totalLoadTime() - Method in class com.github.benmanes.caffeine.cache.stats.CacheStats
Returns the total number of nanoseconds the cache has spent loading new values.

U

UNSAFE - Static variable in class com.github.benmanes.caffeine.base.UnsafeAccess
The Unsafe instance.
UnsafeAccess - Class in com.github.benmanes.caffeine.base
Static access to Unsafe and convenient utility methods for performing low-level, unsafe operations.

V

valueOf(String) - Static method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns an array containing the constants of this enum type, in the order they are declared.

W

wasEvicted() - Method in enum com.github.benmanes.caffeine.cache.RemovalCause
Returns true if there was an automatic removal due to eviction (the cause is neither RemovalCause.EXPLICIT nor RemovalCause.REPLACED).
weakKeys() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weakValues() - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).
weigh(K, V) - Method in interface com.github.benmanes.caffeine.cache.Weigher
Returns the weight of a cache entry.
weigher(Weigher<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies the weigher to use in determining the weight of entries.
Weigher<K,V> - Interface in com.github.benmanes.caffeine.cache
Calculates the weights of cache entries.
weightedSize() - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns the approximate accumulated weight of entries in this cache.
weightOf(K) - Method in interface com.github.benmanes.caffeine.cache.Policy.Eviction
Returns the weight of the entry.
write(K, V) - Method in interface com.github.benmanes.caffeine.cache.CacheWriter
Writes the value corresponding to the key to the external resource.
writer(CacheWriter<? super K1, ? super V1>) - Method in class com.github.benmanes.caffeine.cache.Caffeine
Specifies a writer instance that caches should notify each time an entry is explicitly created or modified, or removed for any reason.

Y

youngest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.Expiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
youngest(int) - Method in interface com.github.benmanes.caffeine.cache.Policy.VarExpiration
Returns an unmodifiable snapshot Map view of the cache with ordered traversal.
A B C D E F G H I L M N O P R S T U V W Y 
Skip navigation links