Package org.redisson.api
Interface RLocalCachedMapRx<K,V>
- Type Parameters:
K
- map keyV
- map value
- All Superinterfaces:
RExpirableRx
,RMapRx<K,
,V> RObjectRx
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 cacheio.reactivex.rxjava3.core.Completable
Clears local cache across all instancesReturns state of local cacheMethods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RMapRx
addAndGet, 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.RObjectRx
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Method Details
-
clearLocalCache
io.reactivex.rxjava3.core.Completable 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
-