| Constructor and Description |
|---|
GuavaCache(com.google.common.cache.Cache<K,V> guavaCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(K key) |
static <expectedK,expectedV> |
create(com.google.common.cache.Cache<expectedK,expectedV> guavaCache)
Wrap a Guava cache with a custom cache.
|
Optional<V> |
get(K key) |
boolean |
isEmpty() |
void |
put(K key,
V value) |
void |
remove(K key) |
void |
removeAll() |
long |
size() |
CacheStats |
stats() |
public static <expectedK,expectedV> GuavaCache<expectedK,expectedV> create(com.google.common.cache.Cache<expectedK,expectedV> guavaCache)
expectedK - The expected type for the key.expectedV - The expected type for the value.guavaCache - The guava cache to be wrapped-NoCache.public CacheStats stats()
Copyright © 2007–2024. All rights reserved.