V
- valuepublic interface RSetCacheReactive<V> extends RCollectionReactive<V>, RDestroyable
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Boolean> |
add(V value,
long ttl,
TimeUnit unit)
Stores value with specified time to live.
|
RLockReactive |
getFairLock(V value)
Returns
RLock instance associated with value |
RLockReactive |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphoreReactive |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLockReactive |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphoreReactive |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
reactor.core.publisher.Mono<Set<V>> |
readAll()
Read all elements at once
|
reactor.core.publisher.Mono<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, touch, unlink
destroy
RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore
instance associated with value
value
- - set valueRSemaphoreReactive getSemaphore(V value)
RSemaphore
instance associated with value
value
- - set valueRLockReactive getFairLock(V value)
RLock
instance associated with value
value
- - set valueRReadWriteLockReactive getReadWriteLock(V value)
RReadWriteLock
instance associated with value
value
- - set valueRLockReactive getLock(V value)
value
value
- - set valuereactor.core.publisher.Mono<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.reactor.core.publisher.Mono<Integer> size()
size
in interface RCollectionReactive<V>
Copyright © 2014–2019 The Redisson Project. All rights reserved.