Package org.redisson.api
Interface RSetCacheRx<V>
-
- Type Parameters:
V
- value
- All Superinterfaces:
RCollectionRx<V>
,RExpirableRx
,RObjectRx
public interface RSetCacheRx<V> extends RCollectionRx<V>
Async set functions- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Flowable<Boolean>
add(V value, long ttl, TimeUnit unit)
io.reactivex.Flowable<Set<V>>
readAll()
Read all elements at onceio.reactivex.Flowable<Integer>
size()
Returns the number of elements in cache.-
Methods inherited from interface org.redisson.api.RCollectionRx
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll
-
Methods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
-
-
-
Method Detail
-
size
io.reactivex.Flowable<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 interfaceRCollectionRx<V>
- Returns:
- size of collection
-
-