K - Key type.V - Value type.public interface NodeSelectionSetAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
AsyncExecutions<Long> |
sadd(K key,
V... members)
Add one or more members to a set.
|
AsyncExecutions<Long> |
scard(K key)
Get the number of members in a set.
|
AsyncExecutions<Set<V>> |
sdiff(K... keys)
Subtract multiple sets.
|
AsyncExecutions<Long> |
sdiff(ValueStreamingChannel<V> channel,
K... keys)
Subtract multiple sets.
|
AsyncExecutions<Long> |
sdiffstore(K destination,
K... keys)
Subtract multiple sets and store the resulting set in a key.
|
AsyncExecutions<Set<V>> |
sinter(K... keys)
Intersect multiple sets.
|
AsyncExecutions<Long> |
sinter(ValueStreamingChannel<V> channel,
K... keys)
Intersect multiple sets.
|
AsyncExecutions<Long> |
sinterstore(K destination,
K... keys)
Intersect multiple sets and store the resulting set in a key.
|
AsyncExecutions<Boolean> |
sismember(K key,
V member)
Determine if a given value is a member of a set.
|
AsyncExecutions<Set<V>> |
smembers(K key)
Get all the members in a set.
|
AsyncExecutions<Long> |
smembers(ValueStreamingChannel<V> channel,
K key)
Get all the members in a set.
|
AsyncExecutions<Boolean> |
smove(K source,
K destination,
V member)
Move a member from one set to another.
|
AsyncExecutions<V> |
spop(K key)
Remove and return a random member from a set.
|
AsyncExecutions<Set<V>> |
spop(K key,
long count)
Remove and return one or multiple random members from a set.
|
AsyncExecutions<V> |
srandmember(K key)
Get one random member from a set.
|
AsyncExecutions<List<V>> |
srandmember(K key,
long count)
Get one or multiple random members from a set.
|
AsyncExecutions<Long> |
srandmember(ValueStreamingChannel<V> channel,
K key,
long count)
Get one or multiple random members from a set.
|
AsyncExecutions<Long> |
srem(K key,
V... members)
Remove one or more members from a set.
|
AsyncExecutions<ValueScanCursor<V>> |
sscan(K key)
Incrementally iterate Set elements.
|
AsyncExecutions<ValueScanCursor<V>> |
sscan(K key,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
AsyncExecutions<ValueScanCursor<V>> |
sscan(K key,
ScanCursor scanCursor)
Incrementally iterate Set elements.
|
AsyncExecutions<ValueScanCursor<V>> |
sscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
AsyncExecutions<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key)
Incrementally iterate Set elements.
|
AsyncExecutions<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
AsyncExecutions<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate Set elements.
|
AsyncExecutions<StreamScanCursor> |
sscan(ValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate Set elements.
|
AsyncExecutions<Set<V>> |
sunion(K... keys)
Add multiple sets.
|
AsyncExecutions<Long> |
sunion(ValueStreamingChannel<V> channel,
K... keys)
Add multiple sets.
|
AsyncExecutions<Long> |
sunionstore(K destination,
K... keys)
Add multiple sets and store the resulting set in a key.
|
AsyncExecutions<Long> sadd(K key, V... members)
key - the keymembers - the member type: valueAsyncExecutions<Long> scard(K key)
key - the keykey does not
exist.AsyncExecutions<Set<V>> sdiff(K... keys)
keys - the keyAsyncExecutions<Long> sdiff(ValueStreamingChannel<V> channel, K... keys)
channel - the channelkeys - the keysAsyncExecutions<Long> sdiffstore(K destination, K... keys)
destination - the destination type: keykeys - the keyAsyncExecutions<Set<V>> sinter(K... keys)
keys - the keyAsyncExecutions<Long> sinter(ValueStreamingChannel<V> channel, K... keys)
channel - the channelkeys - the keysAsyncExecutions<Long> sinterstore(K destination, K... keys)
destination - the destination type: keykeys - the keyAsyncExecutions<Boolean> sismember(K key, V member)
key - the keymember - the member type: valuekey does not exist.AsyncExecutions<Boolean> smove(K source, K destination, V member)
source - the source keydestination - the destination type: keymember - the member type: valuesource and no
operation was performed.AsyncExecutions<Set<V>> smembers(K key)
key - the keyAsyncExecutions<Long> smembers(ValueStreamingChannel<V> channel, K key)
channel - the channelkey - the keysAsyncExecutions<V> spop(K key)
key - the keykey does not exist.AsyncExecutions<Set<V>> spop(K key, long count)
key - the keycount - number of members to popkey does not exist.AsyncExecutions<V> srandmember(K key)
key - the keycount argument the command returns a Bulk Reply with the
randomly selected element, or null when key does not exist.AsyncExecutions<List<V>> srandmember(K key, long count)
key - the keycount - the count type: longcount argument the command returns a Bulk Reply
with the randomly selected element, or null when key does not exist.AsyncExecutions<Long> srandmember(ValueStreamingChannel<V> channel, K key, long count)
channel - streaming channel that receives a call for every valuekey - the keycount - the countAsyncExecutions<Long> srem(K key, V... members)
key - the keymembers - the member type: valueAsyncExecutions<Set<V>> sunion(K... keys)
keys - the keyAsyncExecutions<Long> sunion(ValueStreamingChannel<V> channel, K... keys)
channel - streaming channel that receives a call for every valuekeys - the keysAsyncExecutions<Long> sunionstore(K destination, K... keys)
destination - the destination type: keykeys - the keyAsyncExecutions<ValueScanCursor<V>> sscan(K key)
key - the keyAsyncExecutions<ValueScanCursor<V>> sscan(K key, ScanArgs scanArgs)
key - the keyscanArgs - scan argumentsAsyncExecutions<ValueScanCursor<V>> sscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
key - the keyscanCursor - cursor to resume from a previous scan, must not be nullscanArgs - scan argumentsAsyncExecutions<ValueScanCursor<V>> sscan(K key, ScanCursor scanCursor)
key - the keyscanCursor - cursor to resume from a previous scan, must not be nullAsyncExecutions<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key)
channel - streaming channel that receives a call for every valuekey - the keyAsyncExecutions<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
channel - streaming channel that receives a call for every valuekey - the keyscanArgs - scan argumentsAsyncExecutions<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
channel - streaming channel that receives a call for every valuekey - the keyscanCursor - cursor to resume from a previous scan, must not be nullscanArgs - scan argumentsAsyncExecutions<StreamScanCursor> sscan(ValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
channel - streaming channel that receives a call for every valuekey - the keyscanCursor - cursor to resume from a previous scan, must not be nullCopyright © 2019 lettuce.io. All rights reserved.