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, retainAllclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkdestroyRPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore instance associated with valuevalue - - set valueRSemaphoreReactive getSemaphore(V value)
RSemaphore instance associated with valuevalue - - set valueRLockReactive getFairLock(V value)
RLock instance associated with valuevalue - - set valueRReadWriteLockReactive getReadWriteLock(V value)
RReadWriteLock instance associated with valuevalue - - set valueRLockReactive getLock(V value)
valuevalue - - 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–2020 Redisson. All rights reserved.