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.
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, 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>Copyright © 2014–2018 The Redisson Project. All rights reserved.