Top Description Inners Fields Constructors Methods
com.github.benmanes.caffeine.guava

pack-priv Class CaffeinatedGuavaCache<K, V>

extends Object
implements Cache<K, V>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.google.common.cache.Cache
Known Direct Subclasses
com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache
Annotations
@SuppressWarnings:serial
Static Imports
java.util.Objects.requireNonNull

A Caffeine-backed cache through a Guava facade.
Author
[email protected] (Ben Manes)

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv static class
pack-priv class
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
private final Cache<K, V>
private transient @Nullable ConcurrentMap<K, V>
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ConcurrentMap<K, V>
asMap()

Implements com.google.common.cache.Cache.asMap.

Returns a view of the entries stored in this cache as a thread-safe map.
public void
cleanUp()

Implements com.google.common.cache.Cache.cleanUp.

Performs any pending maintenance operations needed by the cache.
public V
get(K key, Callable<? extends V> valueLoader)

Implements com.google.common.cache.Cache.get.

Returns the value associated with key in this cache, obtaining that value from loader if necessary.
public ImmutableMap<K, V>
getAllPresent(Iterable<?> keys)

Implements com.google.common.cache.Cache.getAllPresent.

Returns a map of the values associated with keys in this cache.
public @Nullable V
getIfPresent(Object key)

Implements com.google.common.cache.Cache.getIfPresent.

Returns the value associated with key in this cache, or null if there is no cached value for key.
public void
invalidate(Object key)

Implements com.google.common.cache.Cache.invalidate.

Discards any cached value for key key.
public void
invalidateAll(Iterable<?> keys)

Implements com.google.common.cache.Cache.invalidateAll.

Discards any cached values for keys keys.
public void
invalidateAll()

Implements com.google.common.cache.Cache.invalidateAll.

Discards all entries in the cache.
public void
put(K key, V value)

Implements com.google.common.cache.Cache.put.

Associates value with key in this cache.
public void
putAll(Map<? extends K, ? extends V> m)

Implements com.google.common.cache.Cache.putAll.

Copies all of the mappings from the specified map to the cache.
public long
size()

Implements com.google.common.cache.Cache.size.

Returns the approximate number of entries in this cache.
public CacheStats
stats()

Implements com.google.common.cache.Cache.stats.

Returns a current snapshot of this cache's cumulative statistics, or a set of default values if the cache is not recording statistics.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait