V - valuepublic interface RSetCacheRx<V> extends RCollectionRx<V>, RDestroyable
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<Boolean> |
add(V value,
long ttl,
TimeUnit unit)
Stores value with specified time to live.
|
RLockRx |
getFairLock(V value)
Returns
RLock instance associated with value |
RLockRx |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphoreRx |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLockRx |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphoreRx |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
io.reactivex.rxjava3.core.Single<Set<V>> |
readAll()
Read all elements at once
|
io.reactivex.rxjava3.core.Single<Integer> |
size()
Returns the number of elements in cache.
|
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAllclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkdestroyRPermitExpirableSemaphoreRx getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore instance associated with valuevalue - - set valueRSemaphoreRx getSemaphore(V value)
RSemaphore instance associated with valuevalue - - set valueRLockRx getFairLock(V value)
RLock instance associated with valuevalue - - set valueRReadWriteLockRx getReadWriteLock(V value)
RReadWriteLock instance associated with valuevalue - - set valueRLockRx getLock(V value)
valuevalue - - set valueio.reactivex.rxjava3.core.Single<Boolean> add(V value, long ttl, TimeUnit unit)
value - to addttl - - time to live for key\value entry.
If 0 then stores infinitely.unit - - time unittrue if value has been added. false
if value already been in collection.io.reactivex.rxjava3.core.Single<Integer> size()
size in interface RCollectionRx<V>Copyright © 2014–2020 Redisson. All rights reserved.