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()voidcleanUp()getAllPresent(Iterable<?> keys) @Nullable VgetIfPresent(Object key) voidinvalidate(Object key) voidvoidinvalidateAll(Iterable<?> keys) voidvoidlongsize()com.google.common.cache.CacheStatsstats()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
cache
-
-
Constructor Details
-
CaffeinatedGuavaCache
-
-
Method Details
-
getIfPresent
-
get
- Specified by:
getin interfacecom.google.common.cache.Cache<K,V> - Throws:
ExecutionException
-
getAllPresent
-
put
-
putAll
-
invalidate
-
invalidateAll
-
invalidateAll
-
size
-
stats
-
asMap
-
cleanUp
-