public class Cache<K,V> extends Object
Constructor and Description |
---|
Cache(CacheConfig config,
com.google.common.cache.CacheLoader<K,V> cacheLoader) |
Modifier and Type | Method and Description |
---|---|
V |
get(K key) |
V |
get(K key,
Callable<? extends V> valueLoader) |
V |
getIfCached(K key) |
void |
invalidateAll() |
void |
put(K key,
V value) |
void |
refresh(K key) |
public Cache(CacheConfig config, com.google.common.cache.CacheLoader<K,V> cacheLoader)
public V get(K key) throws ExecutionException
ExecutionException
public V get(K key, Callable<? extends V> valueLoader) throws ExecutionException
ExecutionException
public void invalidateAll()
public void refresh(K key)
Copyright © 2021. All rights reserved.