Package org.redisson.api.map
Interface MapLoaderAsync<K,V>
- Type Parameters:
K- key typeV- value type
public interface MapLoaderAsync<K,V>
Map loader used for read-through operations or during
RMap.loadAll(boolean, int) execution.- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionLoads map value by key.Loads all keys.
-
Method Details
-
load
Loads map value by key.- Parameters:
key- - map key- Returns:
- value or
nullif value doesn't exists
-
loadAllKeys
AsyncIterator<K> loadAllKeys()Loads all keys.- Returns:
- Iterable object. It's helpful if all keys don't fit in memory.
-