Package io.lettuce.core.cluster.api.sync
Interface NodeSelectionSortedSetCommands<K,V>
-
- Type Parameters:
K
- Key type.V
- Value type.
- All Known Subinterfaces:
NodeSelectionCommands<K,V>
public interface NodeSelectionSortedSetCommands<K,V>
Synchronous executed commands on a node selection for Sorted Sets.- Since:
- 4.0
- Author:
- Mark Paluch
- Generated class:
- by io.lettuce.apigenerator.CreateSyncNodeSelectionClusterApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Executions<KeyValue<K,List<ScoredValue<V>>>>
bzmpop(double timeout, int count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<KeyValue<K,ScoredValue<V>>>
bzmpop(double timeout, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<KeyValue<K,List<ScoredValue<V>>>>
bzmpop(long timeout, long count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<KeyValue<K,ScoredValue<V>>>
bzmpop(long timeout, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<KeyValue<K,ScoredValue<V>>>
bzpopmax(double timeout, K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.Executions<KeyValue<K,ScoredValue<V>>>
bzpopmax(long timeout, K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.Executions<KeyValue<K,ScoredValue<V>>>
bzpopmin(double timeout, K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.Executions<KeyValue<K,ScoredValue<V>>>
bzpopmin(long timeout, K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.Executions<Long>
zadd(K key, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Long>
zadd(K key, ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Long>
zadd(K key, ZAddArgs zAddArgs, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Long>
zadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Long>
zadd(K key, ZAddArgs zAddArgs, Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Long>
zadd(K key, Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.Executions<Double>
zaddincr(K key, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option.Executions<Double>
zaddincr(K key, ZAddArgs zAddArgs, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option.Executions<Long>
zcard(K key)
Get the number of members in a sorted set.Executions<Long>
zcount(K key, double min, double max)
Deprecated.Executions<Long>
zcount(K key, Range<? extends Number> range)
Count the members in a sorted set with scores within the givenRange
.Executions<Long>
zcount(K key, String min, String max)
Deprecated.Executions<List<V>>
zdiff(K... keys)
Computes the difference between the first and all successive input sorted sets.Executions<Long>
zdiffstore(K destKey, K... srcKeys)
Computes the difference between the first and all successive input sorted sets and stores the result in destination.Executions<List<ScoredValue<V>>>
zdiffWithScores(K... keys)
Computes the difference between the first and all successive input sorted sets.Executions<Double>
zincrby(K key, double amount, V member)
Increment the score of a member in a sorted set.Executions<List<V>>
zinter(ZAggregateArgs aggregateArgs, K... keys)
Intersect multiple sorted sets and returns the resulting sorted.Executions<List<V>>
zinter(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.Executions<Long>
zintercard(long limit, K... keys)
This command is similar tozinter(java.lang.Object[])
, but instead of returning the result set, it returns just the cardinality of the result.Executions<Long>
zintercard(K... keys)
This command is similar tozinter(java.lang.Object[])
, but instead of returning the result set, it returns just the cardinality of the result.Executions<Long>
zinterstore(K destination, ZStoreArgs storeArgs, K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.Executions<Long>
zinterstore(K destination, K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.Executions<List<ScoredValue<V>>>
zinterWithScores(ZAggregateArgs aggregateArgs, K... keys)
Intersect multiple sorted sets and returns the resulting sorted.Executions<List<ScoredValue<V>>>
zinterWithScores(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.Executions<Long>
zlexcount(K key, Range<? extends V> range)
Count the number of members in a sorted set between a given lexicographical range.Executions<Long>
zlexcount(K key, String min, String max)
Deprecated.Executions<KeyValue<K,List<ScoredValue<V>>>>
zmpop(int count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<KeyValue<K,ScoredValue<V>>>
zmpop(ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.Executions<List<Double>>
zmscore(K key, V... members)
Returns the scores associated with the specified members in the sorted set stored at key.Executions<ScoredValue<V>>
zpopmax(K key)
Removes and returns up to count members with the highest scores in the sorted set stored at key.Executions<List<ScoredValue<V>>>
zpopmax(K key, long count)
Removes and returns up to count members with the highest scores in the sorted set stored at key.Executions<ScoredValue<V>>
zpopmin(K key)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.Executions<List<ScoredValue<V>>>
zpopmin(K key, long count)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.Executions<V>
zrandmember(K key)
Return a random member from the sorted set stored atkey
.Executions<List<V>>
zrandmember(K key, long count)
Returncount
random members from the sorted set stored atkey
.Executions<ScoredValue<V>>
zrandmemberWithScores(K key)
Return a random member along its value from the sorted set stored atkey
.Executions<List<ScoredValue<V>>>
zrandmemberWithScores(K key, long count)
Returncount
random members along their value from the sorted set stored atkey
.Executions<Long>
zrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
Return a range of members in a sorted set, by index.Executions<List<V>>
zrange(K key, long start, long stop)
Return a range of members in a sorted set, by index.Executions<List<V>>
zrangebylex(K key, Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range.Executions<List<V>>
zrangebylex(K key, Range<? extends V> range, Limit limit)
Return a range of members in a sorted set, by lexicographical range.Executions<List<V>>
zrangebylex(K key, String min, String max)
Deprecated.Executions<List<V>>
zrangebylex(K key, String min, String max, long offset, long count)
Deprecated.Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)
Deprecated.Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members in a sorted set, by score.Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members in a sorted set, by score.Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)
Deprecated.Executions<Long>
zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
Executions<List<V>>
zrangebyscore(K key, double min, double max)
Deprecated.Executions<List<V>>
zrangebyscore(K key, double min, double max, long offset, long count)
Deprecated.Executions<List<V>>
zrangebyscore(K key, Range<? extends Number> range)
Return a range of members in a sorted set, by score.Executions<List<V>>
zrangebyscore(K key, Range<? extends Number> range, Limit limit)
Return a range of members in a sorted set, by score.Executions<List<V>>
zrangebyscore(K key, String min, String max)
Deprecated.Executions<List<V>>
zrangebyscore(K key, String min, String max, long offset, long count)
Deprecated.Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)
Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score.Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members with scores in a sorted set, by score.Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)
Executions<Long>
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, double min, double max)
Deprecated.Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, double min, double max, long offset, long count)
Deprecated.Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, Range<? extends Number> range)
Return a range of members with score in a sorted set, by score.Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
Return a range of members with score in a sorted set, by score.Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, String min, String max)
Deprecated.Executions<List<ScoredValue<V>>>
zrangebyscoreWithScores(K key, String min, String max, long offset, long count)
Deprecated.Executions<Long>
zrangestore(K dstKey, K srcKey, Range<Long> range)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.Executions<Long>
zrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.Executions<Long>
zrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.Executions<Long>
zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members with scores in a sorted set, by index.Executions<List<ScoredValue<V>>>
zrangeWithScores(K key, long start, long stop)
Return a range of members with scores in a sorted set, by index.Executions<Long>
zrank(K key, V member)
Determine the index of a member in a sorted set.Executions<ScoredValue<Long>>
zrankWithScore(K key, V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high.Executions<Long>
zrem(K key, V... members)
Remove one or more members from a sorted set.Executions<Long>
zremrangebylex(K key, Range<? extends V> range)
Remove all members in a sorted set between the given lexicographical range.Executions<Long>
zremrangebylex(K key, String min, String max)
Deprecated.Executions<Long>
zremrangebyrank(K key, long start, long stop)
Remove all members in a sorted set within the given indexes.Executions<Long>
zremrangebyscore(K key, double min, double max)
Deprecated.Executions<Long>
zremrangebyscore(K key, Range<? extends Number> range)
Remove all members in a sorted set within the given scores.Executions<Long>
zremrangebyscore(K key, String min, String max)
Deprecated.Executions<Long>
zrevrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members in a sorted set, by index, with scores ordered from high to low.Executions<List<V>>
zrevrange(K key, long start, long stop)
Return a range of members in a sorted set, by index, with scores ordered from high to low.Executions<List<V>>
zrevrangebylex(K key, Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.Executions<List<V>>
zrevrangebylex(K key, Range<? extends V> range, Limit limit)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)
Deprecated.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
Deprecated.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)
Deprecated.Executions<Long>
zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
Deprecated.Executions<List<V>>
zrevrangebyscore(K key, double max, double min)
Deprecated.Executions<List<V>>
zrevrangebyscore(K key, double max, double min, long offset, long count)
Deprecated.Executions<List<V>>
zrevrangebyscore(K key, Range<? extends Number> range)
Return a range of members in a sorted set, by score, with scores ordered from high to low.Executions<List<V>>
zrevrangebyscore(K key, Range<? extends Number> range, Limit limit)
Return a range of members in a sorted set, by score, with scores ordered from high to low.Executions<List<V>>
zrevrangebyscore(K key, String max, String min)
Deprecated.Executions<List<V>>
zrevrangebyscore(K key, String max, String min, long offset, long count)
Deprecated.Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)
Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)
Executions<Long>
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, double max, double min)
Deprecated.Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)
Deprecated.Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, Range<? extends Number> range)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, String max, String min)
Deprecated.Executions<List<ScoredValue<V>>>
zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)
Deprecated.Executions<Long>
zrevrangestore(K dstKey, K srcKey, Range<Long> range)
Get the specified range of elements ordered from high to low in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.Executions<Long>
zrevrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
Get the lexicographical range ordered from high to low of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.Executions<Long>
zrevrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
Get the specified range of elements in the sorted set stored at {@code srcKey with scores ordered from high to low and stores the result in the {@code dstKey} destination key.Executions<Long>
zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.Executions<List<ScoredValue<V>>>
zrevrangeWithScores(K key, long start, long stop)
Return a range of members with scores in a sorted set, by index, with scores ordered from high to low.Executions<Long>
zrevrank(K key, V member)
Determine the index of a member in a sorted set, with scores ordered from high to low.Executions<ScoredValue<Long>>
zrevrankWithScore(K key, V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low.Executions<StreamScanCursor>
zscan(ScoredValueStreamingChannel<V> channel, K key)
Incrementally iterate sorted sets elements and associated scores.Executions<StreamScanCursor>
zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.Executions<StreamScanCursor>
zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.Executions<StreamScanCursor>
zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.Executions<ScoredValueScanCursor<V>>
zscan(K key)
Incrementally iterate sorted sets elements and associated scores.Executions<ScoredValueScanCursor<V>>
zscan(K key, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.Executions<ScoredValueScanCursor<V>>
zscan(K key, ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.Executions<ScoredValueScanCursor<V>>
zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.Executions<Double>
zscore(K key, V member)
Get the score associated with the given member in a sorted set.Executions<List<V>>
zunion(ZAggregateArgs aggregateArgs, K... keys)
Add multiple sorted sets and returns the resulting sorted set.Executions<List<V>>
zunion(K... keys)
Add multiple sorted sets and returns the resulting sorted set.Executions<Long>
zunionstore(K destination, ZStoreArgs storeArgs, K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.Executions<Long>
zunionstore(K destination, K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.Executions<List<ScoredValue<V>>>
zunionWithScores(ZAggregateArgs aggregateArgs, K... keys)
Add multiple sorted sets and returns the resulting sorted set.Executions<List<ScoredValue<V>>>
zunionWithScores(K... keys)
Add multiple sorted sets and returns the resulting sorted set.
-
-
-
Method Detail
-
bzmpop
Executions<KeyValue<K,ScoredValue<V>>> bzmpop(long timeout, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- ScoredValue<V> the removed element or
Value.empty()
. - Since:
- 6.3
-
bzmpop
Executions<KeyValue<K,List<ScoredValue<V>>>> bzmpop(long timeout, long count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
timeout
- the timeout in seconds.count
- number of elements to pop.args
- the command args.keys
- the keys.- Returns:
- ScoredValue<V> the removed elements or
Value.empty()
. - Since:
- 6.3
-
bzmpop
Executions<KeyValue<K,ScoredValue<V>>> bzmpop(double timeout, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- ScoredValue<V> the removed element or
Value.empty()
. - Since:
- 6.3
-
bzmpop
Executions<KeyValue<K,List<ScoredValue<V>>>> bzmpop(double timeout, int count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
timeout
- the timeout in seconds.count
- number of elements to pop.args
- the command args.keys
- the keys.- Returns:
- ScoredValue<V> the removed elements or
Value.empty()
. - Since:
- 6.3
-
bzpopmin
Executions<KeyValue<K,ScoredValue<V>>> bzpopmin(long timeout, K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
- Since:
- 5.1
-
bzpopmin
Executions<KeyValue<K,ScoredValue<V>>> bzpopmin(double timeout, K... keys)
Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
- Since:
- 6.1.3
-
bzpopmax
Executions<KeyValue<K,ScoredValue<V>>> bzpopmax(long timeout, K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
- Since:
- 5.1
-
bzpopmax
Executions<KeyValue<K,ScoredValue<V>>> bzpopmax(double timeout, K... keys)
Removes and returns a member with the highest scores in the sorted set stored at one of the keys.- Parameters:
timeout
- the timeout in seconds.keys
- the keys.- Returns:
- KeyValue<K, ScoredValue<V>> multi-bulk containing the name of the key, the score and the popped member.
- Since:
- 6.1.3
-
zadd
Executions<Long> zadd(K key, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the key.score
- the score.member
- the member.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Executions<Long> zadd(K key, Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the key.scoresAndValues
- the scoresAndValue tuples (score,value,score,value,...).- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Executions<Long> zadd(K key, ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the key.scoredValues
- the scored values.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Executions<Long> zadd(K key, ZAddArgs zAddArgs, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the key.zAddArgs
- arguments for zadd.score
- the score.member
- the member.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Executions<Long> zadd(K key, ZAddArgs zAddArgs, Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the key.zAddArgs
- arguments for zadd.scoresAndValues
- the scoresAndValue tuples (score,value,score,value,...).- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zadd
Executions<Long> zadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.- Parameters:
key
- the ke.zAddArgs
- arguments for zadd.scoredValues
- the scored values.- Returns:
- Long integer-reply specifically: The number of elements added to the sorted sets, not including elements already existing for which the score was updated.
-
zaddincr
Executions<Double> zaddincr(K key, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option. ZADD acts like ZINCRBY.- Parameters:
key
- the key.score
- the score.member
- the member.- Returns:
- Long integer-reply specifically: The total number of elements changed.
-
zaddincr
Executions<Double> zaddincr(K key, ZAddArgs zAddArgs, double score, V member)
Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option. ZADD acts like ZINCRBY.- Parameters:
key
- the key.zAddArgs
- arguments for zadd.score
- the score.member
- the member.- Returns:
- Long integer-reply specifically: The total number of elements changed.
- Since:
- 4.3
-
zcard
Executions<Long> zcard(K key)
Get the number of members in a sorted set.- Parameters:
key
- the key.- Returns:
- Long integer-reply the cardinality (number of elements) of the sorted set, or
false
ifkey
does not exist.
-
zcount
@Deprecated Executions<Long> zcount(K key, double min, double max)
Deprecated.Count the members in a sorted set with scores within the given values.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zcount
@Deprecated Executions<Long> zcount(K key, String min, String max)
Deprecated.Count the members in a sorted set with scores within the given values.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zcount
Executions<Long> zcount(K key, Range<? extends Number> range)
Count the members in a sorted set with scores within the givenRange
.- Parameters:
key
- the key.range
- the range.- Returns:
- Long integer-reply the number of elements in the specified score range.
- Since:
- 4.3
-
zdiff
Executions<List<V>> zdiff(K... keys)
Computes the difference between the first and all successive input sorted sets.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of elements.
- Since:
- 6.1
-
zdiffstore
Executions<Long> zdiffstore(K destKey, K... srcKeys)
Computes the difference between the first and all successive input sorted sets and stores the result in destination.- Parameters:
destKey
- the dest key.srcKeys
- the src keys.- Returns:
- Long the number of elements in the resulting sorted set at destination.
- Since:
- 6.1
-
zdiffWithScores
Executions<List<ScoredValue<V>>> zdiffWithScores(K... keys)
Computes the difference between the first and all successive input sorted sets.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of scored values.
- Since:
- 6.1
-
zincrby
Executions<Double> zincrby(K key, double amount, V member)
Increment the score of a member in a sorted set.- Parameters:
key
- the key.amount
- the increment type: long.member
- the member type: value.- Returns:
- Double bulk-string-reply the new score of
member
(a double precision floating point number), represented as string.
-
zinter
Executions<List<V>> zinter(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of elements.
- Since:
- 6.1
-
zinter
Executions<List<V>> zinter(ZAggregateArgs aggregateArgs, K... keys)
Intersect multiple sorted sets and returns the resulting sorted.- Parameters:
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- List<V> array-reply list of elements.
- Since:
- 6.1
-
zintercard
Executions<Long> zintercard(K... keys)
This command is similar tozinter(java.lang.Object[])
, but instead of returning the result set, it returns just the cardinality of the result.- Parameters:
keys
- the keys.- Returns:
- Long Integer reply the number of elements in the resulting intersection.
- Since:
- 6.2
-
zintercard
Executions<Long> zintercard(long limit, K... keys)
This command is similar tozinter(java.lang.Object[])
, but instead of returning the result set, it returns just the cardinality of the result.- Parameters:
limit
- If the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinalitykeys
- the keys.- Returns:
- Long Integer reply the number of elements in the resulting intersection.
- Since:
- 6.2
-
zinterWithScores
Executions<List<ScoredValue<V>>> zinterWithScores(ZAggregateArgs aggregateArgs, K... keys)
Intersect multiple sorted sets and returns the resulting sorted.- Parameters:
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- List<V> array-reply list of scored values.
- Since:
- 6.1
-
zinterWithScores
Executions<List<ScoredValue<V>>> zinterWithScores(K... keys)
Intersect multiple sorted sets and returns the resulting sorted.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of scored values.
- Since:
- 6.1
-
zinterstore
Executions<Long> zinterstore(K destination, K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.- Parameters:
destination
- the destination.keys
- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination
.
-
zinterstore
Executions<Long> zinterstore(K destination, ZStoreArgs storeArgs, K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.- Parameters:
destination
- the destination.storeArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination
.
-
zlexcount
@Deprecated Executions<Long> zlexcount(K key, String min, String max)
Deprecated.Count the number of members in a sorted set between a given lexicographical range.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements in the specified score range.
-
zlexcount
Executions<Long> zlexcount(K key, Range<? extends V> range)
Count the number of members in a sorted set between a given lexicographical range.- Parameters:
key
- the key.range
- the range.- Returns:
- Long integer-reply the number of elements in the specified score range.
- Since:
- 4.3
-
zmscore
Executions<List<Double>> zmscore(K key, V... members)
Returns the scores associated with the specified members in the sorted set stored at key.- Parameters:
key
- the key.members
- the member type: value.- Returns:
- List<Double> array-reply list of scores or nil associated with the specified member values.
- Since:
- 6.1
-
zmpop
Executions<KeyValue<K,ScoredValue<V>>> zmpop(ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
keys
- the keys.- Returns:
- ScoredValue<V> the removed element or
Value.empty()
. - Since:
- 6.3
-
zmpop
Executions<KeyValue<K,List<ScoredValue<V>>>> zmpop(int count, ZPopArgs args, K... keys)
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of keys.- Parameters:
count
- number of elements to pop.args
- the command args.keys
- the keys.- Returns:
- ScoredValue<V> the removed elements or
Value.empty()
. - Since:
- 6.3
-
zpopmin
Executions<ScoredValue<V>> zpopmin(K key)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.- Parameters:
key
- the key.- Returns:
- ScoredValue<V> the removed element.
- Since:
- 5.1
-
zpopmin
Executions<List<ScoredValue<V>>> zpopmin(K key, long count)
Removes and returns up to count members with the lowest scores in the sorted set stored at key.- Parameters:
key
- the key.count
- the number of elements to return.- Returns:
- List<ScoredValue<V>> array-reply list of popped scores and elements.
- Since:
- 5.1
-
zpopmax
Executions<ScoredValue<V>> zpopmax(K key)
Removes and returns up to count members with the highest scores in the sorted set stored at key.- Parameters:
key
- the key.- Returns:
- ScoredValue<V> the removed element.
- Since:
- 5.1
-
zpopmax
Executions<List<ScoredValue<V>>> zpopmax(K key, long count)
Removes and returns up to count members with the highest scores in the sorted set stored at key.- Parameters:
key
- the key.count
- the number of elements to return.- Returns:
- List<ScoredValue<V>> array-reply list of popped scores and elements.
- Since:
- 5.1
-
zrandmember
Executions<V> zrandmember(K key)
Return a random member from the sorted set stored atkey
.- Parameters:
key
- the key.- Returns:
- element.
- Since:
- 6.1
-
zrandmember
Executions<List<V>> zrandmember(K key, long count)
Returncount
random members from the sorted set stored atkey
.- Parameters:
key
- the key.count
- the number of members to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- List<ScoredValue<V>> array-reply list of scores and elements.
- Since:
- 6.1
-
zrandmemberWithScores
Executions<ScoredValue<V>> zrandmemberWithScores(K key)
Return a random member along its value from the sorted set stored atkey
.- Parameters:
key
- the key.- Returns:
- the score and element.
- Since:
- 6.1
-
zrandmemberWithScores
Executions<List<ScoredValue<V>>> zrandmemberWithScores(K key, long count)
Returncount
random members along their value from the sorted set stored atkey
.- Parameters:
key
- the key.count
- the number of members to return. If the provided count argument is positive, return an array of distinct fields.- Returns:
- List<ScoredValue<V>> array-reply list of scores and elements.
- Since:
- 6.1
-
zrange
Executions<List<V>> zrange(K key, long start, long stop)
Return a range of members in a sorted set, by index.- Parameters:
key
- the key.start
- the start.stop
- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrange
Executions<Long> zrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
Return a range of members in a sorted set, by index.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.start
- the start.stop
- the stop.- Returns:
- Long count of elements in the specified range.
-
zrangeWithScores
Executions<List<ScoredValue<V>>> zrangeWithScores(K key, long start, long stop)
Return a range of members with scores in a sorted set, by index.- Parameters:
key
- the key.start
- the start.stop
- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangeWithScores
Executions<Long> zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members with scores in a sorted set, by index.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.start
- the start.stop
- the stop.- Returns:
- Long count of elements in the specified range.
-
zrangebylex
@Deprecated Executions<List<V>> zrangebylex(K key, String min, String max)
Deprecated.Return a range of members in a sorted set, by lexicographical range.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebylex
Executions<List<V>> zrangebylex(K key, Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range.- Parameters:
key
- the key.range
- the range.- Returns:
- List<V> array-reply list of elements in the specified range.
- Since:
- 4.3
-
zrangebylex
@Deprecated Executions<List<V>> zrangebylex(K key, String min, String max, long offset, long count)
Deprecated.Return a range of members in a sorted set, by lexicographical range.- Parameters:
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrangebylex
Executions<List<V>> zrangebylex(K key, Range<? extends V> range, Limit limit)
Return a range of members in a sorted set, by lexicographical range.- Parameters:
key
- the key.range
- the range.limit
- the limit.- Returns:
- List<V> array-reply list of elements in the specified range.
- Since:
- 4.3
-
zrangebyscore
@Deprecated Executions<List<V>> zrangebyscore(K key, double min, double max)
Deprecated.Return a range of members in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
@Deprecated Executions<List<V>> zrangebyscore(K key, String min, String max)
Deprecated.Return a range of members in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Executions<List<V>> zrangebyscore(K key, Range<? extends Number> range)
Return a range of members in a sorted set, by score.- Parameters:
key
- the key.range
- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscore
@Deprecated Executions<List<V>> zrangebyscore(K key, double min, double max, long offset, long count)
Deprecated.Return a range of members in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
@Deprecated Executions<List<V>> zrangebyscore(K key, String min, String max, long offset, long count)
Deprecated.Return a range of members in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrangebyscore
Executions<List<V>> zrangebyscore(K key, Range<? extends Number> range, Limit limit)
Return a range of members in a sorted set, by score.- Parameters:
key
- the key.range
- the range.limit
- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscore
@Deprecated Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)
Deprecated.Stream over a range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
@Deprecated Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)
Deprecated.Stream over a range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.- Returns:
- Long count of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscore
@Deprecated Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
Stream over range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
@Deprecated Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
Stream over a range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscore
Executions<Long> zrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.limit
- the limit.- Returns:
- Long count of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, double min, double max)
Deprecated.Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, String min, String max)
Deprecated.Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, Range<? extends Number> range)
Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.range
- the range.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)
Deprecated.Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)
Deprecated.Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrangebyscoreWithScores
Executions<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
Return a range of members with score in a sorted set, by score.- Parameters:
key
- the key.range
- the range.limit
- the limit.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscoreWithScores
@Deprecated Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)
Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
@Deprecated Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)
Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.- Returns:
- Long count of elements in the specified score range.
- Since:
- 4.3
-
zrangebyscoreWithScores
@Deprecated Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
Deprecated.Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
@Deprecated Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
Deprecated.Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified score range.
-
zrangebyscoreWithScores
Executions<Long> zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members with scores in a sorted set, by score.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.limit
- the limit.- Returns:
- Long count of elements in the specified score range.
- Since:
- 4.3
-
zrangestore
Executions<Long> zrangestore(K dstKey, K srcKey, Range<Long> range)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.- Parameters:
dstKey
- the dst key.srcKey
- the src key.range
- the rank.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.2.1
-
zrangestorebylex
Executions<Long> zrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.- Parameters:
dstKey
- the dst key.srcKey
- the src key.range
- the lexicographical range.limit
- the limit to apply.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.1
-
zrangestorebyscore
Executions<Long> zrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
Get the specified range of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.- Parameters:
dstKey
- the dst key.srcKey
- the src key.range
- the score range.limit
- the limit to apply.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.1
-
zrank
Executions<Long> zrank(K key, V member)
Determine the index of a member in a sorted set.- Parameters:
key
- the key.member
- the member type: value.- Returns:
- Long integer-reply the rank of
member
. Ifmember
does not exist in the sorted set orkey
does not exist,.
-
zrankWithScore
Executions<ScoredValue<Long>> zrankWithScore(K key, V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high.- Parameters:
key
- the key.member
- the member type: value.- Returns:
- the rank and score
- Since:
- 6.3
-
zrem
Executions<Long> zrem(K key, V... members)
Remove one or more members from a sorted set.- Parameters:
key
- the key.members
- the member type: value.- Returns:
- Long integer-reply specifically: The number of members removed from the sorted set, not including non existing members.
-
zremrangebylex
@Deprecated Executions<Long> zremrangebylex(K key, String min, String max)
Deprecated.Remove all members in a sorted set between the given lexicographical range.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebylex
Executions<Long> zremrangebylex(K key, Range<? extends V> range)
Remove all members in a sorted set between the given lexicographical range.- Parameters:
key
- the key.range
- the range.- Returns:
- Long integer-reply the number of elements removed.
- Since:
- 4.3
-
zremrangebyrank
Executions<Long> zremrangebyrank(K key, long start, long stop)
Remove all members in a sorted set within the given indexes.- Parameters:
key
- the key.start
- the start type: long.stop
- the stop type: long.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
@Deprecated Executions<Long> zremrangebyscore(K key, double min, double max)
Deprecated.Remove all members in a sorted set within the given scores.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
@Deprecated Executions<Long> zremrangebyscore(K key, String min, String max)
Deprecated.Remove all members in a sorted set within the given scores.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- Long integer-reply the number of elements removed.
-
zremrangebyscore
Executions<Long> zremrangebyscore(K key, Range<? extends Number> range)
Remove all members in a sorted set within the given scores.- Parameters:
key
- the key.range
- the range.- Returns:
- Long integer-reply the number of elements removed.
- Since:
- 4.3
-
zrevrange
Executions<List<V>> zrevrange(K key, long start, long stop)
Return a range of members in a sorted set, by index, with scores ordered from high to low.- Parameters:
key
- the key.start
- the start.stop
- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrevrange
Executions<Long> zrevrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members in a sorted set, by index, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.start
- the start.stop
- the stop.- Returns:
- Long count of elements in the specified range.
-
zrevrangeWithScores
Executions<List<ScoredValue<V>>> zrevrangeWithScores(K key, long start, long stop)
Return a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Parameters:
key
- the key.start
- the start.stop
- the stop.- Returns:
- List<V> array-reply list of elements in the specified range.
-
zrevrangeWithScores
Executions<Long> zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
Stream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.start
- the start.stop
- the stop.- Returns:
- Long count of elements in the specified range.
-
zrevrangebylex
Executions<List<V>> zrevrangebylex(K key, Range<? extends V> range)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.- Parameters:
key
- the key.range
- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebylex
Executions<List<V>> zrevrangebylex(K key, Range<? extends V> range, Limit limit)
Return a range of members in a sorted set, by lexicographical range ordered from high to low.- Parameters:
key
- the key.range
- the range.limit
- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebyscore
@Deprecated Executions<List<V>> zrevrangebyscore(K key, double max, double min)
Deprecated.Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
@Deprecated Executions<List<V>> zrevrangebyscore(K key, String max, String min)
Deprecated.Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.min
- min score.max
- max score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Executions<List<V>> zrevrangebyscore(K key, Range<? extends Number> range)
Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.range
- the range.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebyscore
@Deprecated Executions<List<V>> zrevrangebyscore(K key, double max, double min, long offset, long count)
Deprecated.Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.offset
- the withscores.count
- the number of items.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
@Deprecated Executions<List<V>> zrevrangebyscore(K key, String max, String min, long offset, long count)
Deprecated.Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscore
Executions<List<V>> zrevrangebyscore(K key, Range<? extends Number> range, Limit limit)
Return a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.range
- the range.limit
- the limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebyscore
@Deprecated Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)
Deprecated.Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.max
- max score.min
- min score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
@Deprecated Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)
Deprecated.Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.- Returns:
- Long count of elements in the specified range.
- Since:
- 4.3
-
zrevrangebyscore
@Deprecated Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
Deprecated.Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
@Deprecated Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
Deprecated.Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscore
Executions<Long> zrevrangebyscore(ValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every value.key
- the key.range
- the range.limit
- the limit.- Returns:
- Long count of elements in the specified range.
- Since:
- 4.3
-
zrevrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, double max, double min)
Deprecated.Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, String max, String min)
Deprecated.Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.range
- the range.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)
Deprecated.Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.- Returns:
- List<ScoredValue<V>> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
@Deprecated Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)
Deprecated.Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.max
- max score.min
- min score.offset
- the offset.count
- the count.- Returns:
- List<V> array-reply list of elements in the specified score range.
-
zrevrangebyscoreWithScores
Executions<List<ScoredValue<V>>> zrevrangebyscoreWithScores(K key, Range<? extends Number> range, Limit limit)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
key
- the key.range
- the range.limit
- limit.- Returns:
- List<V> array-reply list of elements in the specified score range.
- Since:
- 4.3
-
zrevrangebyscoreWithScores
@Deprecated Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
@Deprecated Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
@Deprecated Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
Deprecated.Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
@Deprecated Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
Deprecated.Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.min
- min score.max
- max score.offset
- the offset.count
- the count.- Returns:
- Long count of elements in the specified range.
-
zrevrangebyscoreWithScores
Executions<Long> zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, Range<? extends Number> range, Limit limit)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.range
- the range.limit
- the limit.- Returns:
- Long count of elements in the specified range.
- Since:
- 4.3
-
zrevrangestore
Executions<Long> zrevrangestore(K dstKey, K srcKey, Range<Long> range)
Get the specified range of elements ordered from high to low in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.- Parameters:
dstKey
- the dst key.srcKey
- the src key.range
- the rank.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.2.1
-
zrevrangestorebylex
Executions<Long> zrevrangestorebylex(K dstKey, K srcKey, Range<? extends V> range, Limit limit)
Get the lexicographical range ordered from high to low of elements in the sorted set stored atsrcKey
and stores the result in thedstKey
destination key.- Parameters:
dstKey
- the src key.srcKey
- the dst key.range
- the lexicographical range.limit
- the limit to apply.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.1
-
zrevrangestorebyscore
Executions<Long> zrevrangestorebyscore(K dstKey, K srcKey, Range<? extends Number> range, Limit limit)
Get the specified range of elements in the sorted set stored at {@code srcKey with scores ordered from high to low and stores the result in the {@code dstKey} destination key.- Parameters:
dstKey
- the src key.srcKey
- the dst key.range
- the score range.limit
- the limit to apply.- Returns:
- the number of elements in the resulting sorted set.
- Since:
- 6.1
-
zrevrank
Executions<Long> zrevrank(K key, V member)
Determine the index of a member in a sorted set, with scores ordered from high to low.- Parameters:
key
- the key.member
- the member type: value.- Returns:
- Long integer-reply the rank of
member
. Ifmember
does not exist in the sorted set orkey
does not exist returnnull
.
-
zrevrankWithScore
Executions<ScoredValue<Long>> zrevrankWithScore(K key, V member)
Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low.- Parameters:
key
- the key.member
- the member type: value.- Returns:
- the rank and score
- Since:
- 6.3
-
zscan
Executions<ScoredValueScanCursor<V>> zscan(K key)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
key
- the key.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Executions<ScoredValueScanCursor<V>> zscan(K key, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
key
- the key.scanArgs
- scan arguments.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Executions<ScoredValueScanCursor<V>> zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
key
- the key.scanCursor
- cursor to resume from a previous scan, must not benull
.scanArgs
- scan arguments.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Executions<ScoredValueScanCursor<V>> zscan(K key, ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
key
- the key.scanCursor
- cursor to resume from a previous scan, must not benull
.- Returns:
- ScoredValueScanCursor<V> scan cursor.
-
zscan
Executions<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.- Returns:
- StreamScanCursor scan cursor.
-
zscan
Executions<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.scanArgs
- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
zscan
Executions<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not benull
.scanArgs
- scan arguments.- Returns:
- StreamScanCursor scan cursor.
-
zscan
Executions<StreamScanCursor> zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.- Parameters:
channel
- streaming channel that receives a call for every scored value.key
- the key.scanCursor
- cursor to resume from a previous scan, must not benull
.- Returns:
- StreamScanCursor scan cursor.
-
zscore
Executions<Double> zscore(K key, V member)
Get the score associated with the given member in a sorted set.- Parameters:
key
- the key.member
- the member type: value.- Returns:
- Double bulk-string-reply the score of
member
(a double precision floating point number), represented as string.
-
zunion
Executions<List<V>> zunion(K... keys)
Add multiple sorted sets and returns the resulting sorted set.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of elements.
- Since:
- 6.1
-
zunion
Executions<List<V>> zunion(ZAggregateArgs aggregateArgs, K... keys)
Add multiple sorted sets and returns the resulting sorted set.- Parameters:
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- List<V> array-reply list of elements.
- Since:
- 6.1
-
zunionWithScores
Executions<List<ScoredValue<V>>> zunionWithScores(ZAggregateArgs aggregateArgs, K... keys)
Add multiple sorted sets and returns the resulting sorted set.- Parameters:
aggregateArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- List<V> array-reply list of scored values.
- Since:
- 6.1
-
zunionWithScores
Executions<List<ScoredValue<V>>> zunionWithScores(K... keys)
Add multiple sorted sets and returns the resulting sorted set.- Parameters:
keys
- the keys.- Returns:
- List<V> array-reply list of scored values.
- Since:
- 6.1
-
zunionstore
Executions<Long> zunionstore(K destination, K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.- Parameters:
destination
- destination key.keys
- source keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination
.
-
zunionstore
Executions<Long> zunionstore(K destination, ZStoreArgs storeArgs, K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.- Parameters:
destination
- the destination.storeArgs
- arguments to define aggregation and weights.keys
- the keys.- Returns:
- Long integer-reply the number of elements in the resulting sorted set at
destination
.
-
-