Class CaffeinatedGuavaCache<K,V>
java.lang.Object
com.github.benmanes.caffeine.guava.CaffeinatedGuavaCache<K,V>
- All Implemented Interfaces:
com.google.common.cache.Cache<K,
,V> Serializable
- Direct Known Subclasses:
CaffeinatedGuavaLoadingCache
class CaffeinatedGuavaCache<K,V>
extends Object
implements com.google.common.cache.Cache<K,V>, Serializable
A Caffeine-backed cache through a Guava facade.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()
void
cleanUp()
getAllPresent
(Iterable<?> keys) @Nullable V
getIfPresent
(Object key) void
invalidate
(Object key) void
void
invalidateAll
(Iterable<?> keys) void
void
long
size()
com.google.common.cache.CacheStats
stats()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
cache
-
-
Constructor Details
-
CaffeinatedGuavaCache
-
-
Method Details
-
getIfPresent
-
get
- Specified by:
get
in interfacecom.google.common.cache.Cache<K,
V> - Throws:
ExecutionException
-
getAllPresent
-
put
-
putAll
-
invalidate
-
invalidateAll
-
invalidateAll
public void invalidateAll() -
size
public long size() -
stats
public com.google.common.cache.CacheStats stats() -
asMap
-
cleanUp
public void cleanUp()
-