public interface CacheLoader<K,V>
Modifier and Type | Method | Description |
---|---|---|
V |
load(K key) |
Return the value associated with the specified key, or null if the
key does not have an associated value in the underlying store.
|
Map<K,V> |
loadAll(Collection<? extends K> colKeys) |
Return the values associated with each the specified keys in the
passed collection.
|
V load(K key)
key
- key whose associated value is to be returnedMap<K,V> loadAll(Collection<? extends K> colKeys)
colKeys
- a collection of keys to load