public interface ComputingCache<K,V>
Implementations are not required to support recursive computations. A cache client must be aware that such computations may result in livelocks, infinite loops and other undesired situations.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all cache entries.
|
Iterable<V> |
getAllPresentValues() |
<T> T |
getCastValue(Object key) |
V |
getValue(K key) |
V |
getValueIfPresent(K key) |
void |
invalidate(Object key)
Invalidate the entry with the given key.
|
long |
size() |
<T> T getCastValue(Object key)
key - V getValueIfPresent(K key)
key - long size()
void clear()
void invalidate(Object key)
key - Copyright © 2017. All rights reserved.