V
- valuepublic interface RSetCacheRx<V> extends RCollectionRx<V>, RDestroyable
Modifier and Type | Method and Description |
---|---|
io.reactivex.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.Single<Set<V>> |
readAll()
Read all elements at once
|
io.reactivex.Single<Integer> |
size()
Returns the number of elements in cache.
|
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
destroy
RPermitExpirableSemaphoreRx getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore
instance associated with value
value
- - set valueRSemaphoreRx getSemaphore(V value)
RSemaphore
instance associated with value
value
- - set valueRLockRx getFairLock(V value)
RLock
instance associated with value
value
- - set valueRReadWriteLockRx getReadWriteLock(V value)
RReadWriteLock
instance associated with value
value
- - set valueRLockRx getLock(V value)
value
value
- - set valueio.reactivex.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.Single<Integer> size()
size
in interface RCollectionRx<V>
Copyright © 2014–2020 Redisson. All rights reserved.