K - The keyV - The valuepublic interface ComputingCache<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ComputingCache.Function<K,V> |
static interface |
ComputingCache.KeyPredicate<K> |
static interface |
ComputingCache.Listener<K> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cache.
|
V |
get(K key) |
Map<K,V> |
getAllPresent() |
V |
getIfPresent(K key) |
void |
invalidate(ComputingCache.KeyPredicate<K> keyPredicate)
Invalidate all entries whose keys satisfy a predicate.
|
long |
size() |
V getIfPresent(K key)
key - null if no such value existsvoid clear()
long size()
void invalidate(ComputingCache.KeyPredicate<K> keyPredicate)
keyPredicate - Copyright © 2015. All Rights Reserved.