| Modifier and Type | Method and Description |
|---|---|
V |
get(K key,
Callable<V> valueFetcher)
Returns a value for the key if cached; otherwise creates, caches and returns.
|
void |
invalidate(K key)
Invalidates a key from the cache.
|
V get(K key, Callable<V> valueFetcher) throws ExecutionException
key - a keyvalueFetcher - a value fetcherExecutionExceptionvoid invalidate(K key)
key - a keyCopyright © 2016 The Apache Software Foundation. All rights reserved.