V - valuepublic interface RSetCacheAsync<V> extends RCollectionAsync<V>
| Modifier and Type | Method and Description |
|---|---|
RFuture<Boolean> |
addAsync(V value,
long ttl,
TimeUnit unit)
Stores value with specified time to live.
|
RFuture<Set<V>> |
readAllAsync()
Read all elements at once
|
RFuture<Integer> |
sizeAsync()
Returns the number of elements in cache.
|
RFuture<Boolean> |
tryAddAsync(long ttl,
TimeUnit unit,
V... values)
Tries to add elements only if none of them in set.
|
RFuture<Boolean> |
tryAddAsync(V... values)
Tries to add elements only if none of them in set.
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncRFuture<Boolean> addAsync(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.RFuture<Integer> sizeAsync()
sizeAsync in interface RCollectionAsync<V>RFuture<Boolean> tryAddAsync(V... values)
values - - values to addtrue if elements successfully added,
otherwise false.RFuture<Boolean> tryAddAsync(long ttl, TimeUnit unit, V... values)
values - - values to addttl - - time to live for value.
If 0 then stores infinitely.unit - - time unittrue if elements successfully added,
otherwise false.Copyright © 2014–2020 Redisson. All rights reserved.