Package org.redisson.api
Interface RLocalCachedMapReactive<K,V>
- Type Parameters:
K
- map keyV
- map value
- All Superinterfaces:
RExpirableReactive
,RMapReactive<K,
,V> RObjectReactive
Map object with local entry cache support.
Each instance maintains local cache to achieve fast read operations. Suitable for maps which used mostly for read operations and network roundtrip delays are undesirable.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionReturns all map entries stored in local cacheReturns all keys stored in local cacheReturns all values stored in local cachereactor.core.publisher.Mono
<Void> Clears local cache across all instancesReturns state of local cacheMethods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RMapReactive
addAndGet, addListener, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entryIterator, entryIterator, entryIterator, entryIterator, fastPut, fastPutIfAbsent, fastPutIfExists, fastRemove, get, getAll, getFairLock, getLock, getPermitExpirableSemaphore, getReadWriteLock, getSemaphore, keyIterator, keyIterator, keyIterator, keyIterator, loadAll, loadAll, merge, put, putAll, putIfAbsent, putIfExists, randomEntries, randomKeys, readAllEntrySet, readAllKeySet, readAllMap, readAllValues, remove, remove, replace, replace, size, valueIterator, valueIterator, valueIterator, valueIterator, valueSize
Methods inherited from interface org.redisson.api.RObjectReactive
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Method Details
-
clearLocalCache
reactor.core.publisher.Mono<Void> clearLocalCache()Clears local cache across all instances- Returns:
- void
-
cachedKeySet
Returns all keys stored in local cache- Returns:
- keys
-
cachedValues
Collection<V> cachedValues()Returns all values stored in local cache- Returns:
- values
-
cachedEntrySet
Returns all map entries stored in local cache- Returns:
- entries
-
getCachedMap
Returns state of local cache- Returns:
- map
-