Package org.redisson.api
Interface RSetCacheReactive<V>
-
- Type Parameters:
V
- value
- All Superinterfaces:
RCollectionReactive<V>
,RExpirableReactive
,RObjectReactive
public interface RSetCacheReactive<V> extends RCollectionReactive<V>
Async set functions- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<Boolean>
add(V value, long ttl, TimeUnit unit)
org.reactivestreams.Publisher<Set<V>>
readAll()
Read all elements at onceorg.reactivestreams.Publisher<Integer>
size()
Returns the number of elements in cache.-
Methods inherited from interface org.redisson.api.RCollectionReactive
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll
-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
-
-
-
Method Detail
-
size
org.reactivestreams.Publisher<Integer> size()
Returns the number of elements in cache. This number can reflects expired elements too due to non realtime cleanup process.- Specified by:
size
in interfaceRCollectionReactive<V>
- Returns:
- size of collection
-
-