V
- valueRCollectionAsync<V>
, RExpirableAsync
, RObjectAsync
RSetCache<V>
RedissonSetCache
, RedissonTransactionalSetCache
public interface RSetCacheAsync<V> extends RCollectionAsync<V>
Modifier and Type | Method | 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, retainAllAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
RFuture<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.