K - the type of keys handled by this loaderV - the type of values generated by this loaderpublic interface CacheLoader<K,V>
CacheWriter which is the corollary for load used for write-through caching.| Modifier and Type | Method and Description |
|---|---|
Cache.Entry<K,V> |
load(K key)
Loads an object.
|
Map<K,V> |
loadAll(Iterable<? extends K> keys)
Loads multiple objects.
|
Cache.Entry<K,V> load(K key)
key - the key identifying the object being loadedMap<K,V> loadAll(Iterable<? extends K> keys)
keys - keys identifying the values to be loadedCopyright © 2019 WSO2 Inc. All Rights Reserved.