Interface ReactiveSortedSetCommands<K,V>
- Type Parameters:
K
- the type of the keyV
- the type of the scored item
- All Superinterfaces:
ReactiveRedisCommands
- All Known Implementing Classes:
ReactiveSortedSetCommandsImpl
sorted set
group.
See the sorted set command
list for further information about these commands.
A sorted set
is a set of value associated with scores. These scores allow comparing the elements. As a result,
we obtain a sorted set.
Scores are of type double
.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command BZMPOP.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command BZMPOP.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command BZMPOP.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command BZMPOP.io.smallrye.mutiny.Uni<KeyValue<K,
ScoredValue<V>>> Execute the command BZPOPMAX.io.smallrye.mutiny.Uni<KeyValue<K,
ScoredValue<V>>> Execute the command BZPOPMIN.Execute the command SORT.Execute the command SORT.io.smallrye.mutiny.Uni<Long>
sortAndStore
(K key, K destination) Execute the command SORT with theSTORE
option.io.smallrye.mutiny.Uni<Long>
sortAndStore
(K key, K destination, SortArgs sortArguments) Execute the command SORT with theSTORE
option.io.smallrye.mutiny.Uni<Boolean>
Execute the command ZADD.io.smallrye.mutiny.Uni<Integer>
zadd
(K key, ScoredValue<V>... items) Execute the command ZADD.io.smallrye.mutiny.Uni<Boolean>
Execute the command ZADD.io.smallrye.mutiny.Uni<Integer>
zadd
(K key, ZAddArgs zAddArgs, ScoredValue<V>... items) Execute the command ZADD.io.smallrye.mutiny.Uni<Integer>
Execute the command ZADD.io.smallrye.mutiny.Uni<Integer>
Execute the command ZADD.io.smallrye.mutiny.Uni<Double>
Execute the command ZADD.io.smallrye.mutiny.Uni<Double>
Execute the command ZADD.io.smallrye.mutiny.Uni<Long>
Execute the command ZCARD.io.smallrye.mutiny.Uni<Long>
zcount
(K key, ScoreRange<Double> range) Execute the command ZCOUNT.Execute the command ZDIFF.io.smallrye.mutiny.Uni<Long>
zdiffstore
(K destination, K... keys) Execute the command ZDIFFSTORE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zdiffWithScores
(K... keys) Execute the command ZDIFF.io.smallrye.mutiny.Uni<Double>
Execute the command ZINCRBY.zinter
(ZAggregateArgs arguments, K... keys) Execute the command ZINTER.Execute the command ZINTER.io.smallrye.mutiny.Uni<Long>
zintercard
(long limit, K... keys) Execute the command ZINTERCARD.io.smallrye.mutiny.Uni<Long>
zintercard
(K... keys) Execute the command ZINTERCARD.io.smallrye.mutiny.Uni<Long>
zinterstore
(K destination, ZAggregateArgs arguments, K... keys) Execute the command ZINTERSTORE.io.smallrye.mutiny.Uni<Long>
zinterstore
(K destination, K... keys) Execute the command ZINTERSTORE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zinterWithScores
(ZAggregateArgs arguments, K... keys) Execute the command ZINTER.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zinterWithScores
(K... keys) Execute the command ZINTER.io.smallrye.mutiny.Uni<Long>
Execute the command ZLEXCOUNT.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command ZMPOP.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command ZMPOP.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command ZMPOP.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command ZMPOP.Execute the command ZMSCORE.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command ZPOPMAX.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command ZPOPMAX.io.smallrye.mutiny.Uni<ScoredValue<V>>
Execute the command ZPOPMIN.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
Execute the command ZPOPMIN.io.smallrye.mutiny.Uni<V>
zrandmember
(K key) Execute the command ZRANDMEMBER.zrandmember
(K key, int count) Execute the command ZRANDMEMBER.io.smallrye.mutiny.Uni<ScoredValue<V>>
zrandmemberWithScores
(K key) Execute the command ZRANDMEMBER.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zrandmemberWithScores
(K key, int count) Execute the command ZRANDMEMBER.Execute the command ZRANGE.zrange
(K key, long start, long stop, ZRangeArgs args) Execute the command ZRANGE.zrangebylex
(K key, Range<String> range) Execute the command ZRANGE.zrangebylex
(K key, Range<String> range, ZRangeArgs args) Execute the command ZRANGE.zrangebyscore
(K key, ScoreRange<Double> range) Execute the command ZRANGE.zrangebyscore
(K key, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zrangebyscoreWithScores
(K key, ScoreRange<Double> range) Execute the command ZRANGE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zrangebyscoreWithScores
(K key, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGE.io.smallrye.mutiny.Uni<Long>
zrangestore
(K dst, K src, long min, long max) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<Long>
zrangestore
(K dst, K src, long min, long max, ZRangeArgs args) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<Long>
zrangestorebylex
(K dst, K src, Range<String> range) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<Long>
zrangestorebylex
(K dst, K src, Range<String> range, ZRangeArgs args) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<Long>
zrangestorebyscore
(K dst, K src, ScoreRange<Double> range) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<Long>
zrangestorebyscore
(K dst, K src, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGESTORE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zrangeWithScores
(K key, long start, long stop) Execute the command ZRANGE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zrangeWithScores
(K key, long start, long stop, ZRangeArgs args) Execute the command ZRANGE.io.smallrye.mutiny.Uni<Long>
Execute the command ZRANK.io.smallrye.mutiny.Uni<Integer>
Execute the command ZREM.io.smallrye.mutiny.Uni<Long>
zremrangebylex
(K key, Range<String> range) Execute the command ZREMRANGEBYLEX.io.smallrye.mutiny.Uni<Long>
zremrangebyrank
(K key, long start, long stop) Execute the command ZREMRANGEBYRANK.io.smallrye.mutiny.Uni<Long>
zremrangebyscore
(K key, ScoreRange<Double> range) Execute the command ZREMRANGEBYSCORE.io.smallrye.mutiny.Uni<Long>
Execute the command ZREVRANK.Execute the command ZSCAN.Execute the command ZSCAN.io.smallrye.mutiny.Uni<Double>
Execute the command ZSCORE.zunion
(ZAggregateArgs args, K... keys) Execute the command ZUNION.Execute the command ZUNION.io.smallrye.mutiny.Uni<Long>
zunionstore
(K destination, ZAggregateArgs args, K... keys) Execute the command ZUNIONSTORE.io.smallrye.mutiny.Uni<Long>
zunionstore
(K destination, K... keys) Execute the command ZUNIONSTORE.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zunionWithScores
(ZAggregateArgs args, K... keys) Execute the command ZUNION.io.smallrye.mutiny.Uni<List<ScoredValue<V>>>
zunionWithScores
(K... keys) Execute the command ZUNION.Methods inherited from interface io.quarkus.redis.datasource.ReactiveRedisCommands
getDataSource
-
Method Details
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyscore
- the scoremember
- the member- Returns:
true
if the element was added,false
otherwise
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyitems
- the map of value/score to be added- Returns:
- the number of added elements
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyitems
- the pairs of score/value to be added- Returns:
- the number of added elements
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyzAddArgs
- the extra parameterscore
- the scoremember
- the member- Returns:
true
if the element was added or changed,false
otherwise
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyzAddArgs
- the extra parameteritems
- the map of value/score to be added- Returns:
- the number of items added to the set
-
zadd
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyzAddArgs
- the extra parameteritems
- the pairs of score/value to be added- Returns:
- the number of items added to the set
-
zaddincr
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option Group: sorted-set Requires Redis 1.2.0This variant of
ZADD
acts likeZINCRBY
. Only one score-element pair can be specified in this mode.- Parameters:
key
- the key.score
- the increment.member
- the member.- Returns:
- the new score of the updated member, or
null
if the operation was aborted.
-
zaddincr
Execute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists applying theINCR
option Group: sorted-set Requires Redis 1.2.0This variant of
ZADD
acts likeZINCRBY
. Only one score-element pair can be specified in this mode.- Parameters:
key
- the key.score
- the increment.member
- the member.- Returns:
- the new score of the updated member, or
null
if the operation was aborted (when called with either the XX or the NX option).
-
zcard
Execute the command ZCARD. Summary: Get the number of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the key- Returns:
- the cardinality (number of elements) of the sorted set.
0
if the key does not exist.
-
zcount
Execute the command ZCOUNT. Summary: Count the members in a sorted set with scores within the given values Group: sorted-set Requires Redis 2.0.0- Parameters:
key
- the keyrange
- the range- Returns:
- the number of elements in the specified score range.
-
zdiff
Execute the command ZDIFF. Summary: Subtract multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of the difference.
-
zdiffWithScores
Execute the command ZDIFF. Summary: Subtract multiple sorted sets, and returns the list of keys with their scores Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of the difference.
-
zdiffstore
Execute the command ZDIFFSTORE. Summary: Subtract multiple sorted sets and store the resulting sorted set in a new key Group: sorted-set Requires Redis 6.2.0- Parameters:
destination
- the destination keykeys
- the keys to compare- Returns:
- the number of elements in the resulting sorted set at destination.
-
zincrby
Execute the command ZINCRBY. Summary: Increment the score of a member in a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the key- Returns:
- the new score of member.
-
zinter
Execute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
arguments
- the ZINTER command extra-argumentskeys
- the keys- Returns:
- the result of intersection.
-
zinter
Execute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of intersection.
-
zinterWithScores
Execute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
arguments
- the ZINTER command extra-argumentskeys
- the keys- Returns:
- the result of intersection with the scores
-
zinterWithScores
Execute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of intersection with the scores
-
zintercard
Execute the command ZINTERCARD. Summary: Intersect multiple sorted sets and return the cardinality of the result Group: sorted-set Requires Redis 7.0.0- Parameters:
keys
- the keys- Returns:
- the number of elements in the resulting intersection.
-
zintercard
Execute the command ZINTERCARD. Summary: Intersect multiple sorted sets and return the cardinality of the result Group: sorted-set Requires Redis 7.0.0- Parameters:
limit
- if the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinality.keys
- the keys- Returns:
- the number of elements in the resulting intersection.
-
zinterstore
Execute the command ZINTERSTORE. Summary: Intersect multiple sorted sets and store the resulting sorted set in a new key Group: sorted-set Requires Redis 2.0.0- Parameters:
destination
- the destination keyarguments
- the ZINTERSTORE command extra-argumentskeys
- the keys of the sorted set to analyze- Returns:
- the number of elements in the resulting sorted set at destination.
-
zinterstore
Execute the command ZINTERSTORE. Summary: Intersect multiple sorted sets and store the resulting sorted set in a new key Group: sorted-set Requires Redis 2.0.0- Parameters:
destination
- the destination keykeys
- the keys of the sorted set to analyze- Returns:
- the number of elements in the resulting sorted set at destination.
-
zlexcount
Execute the command ZLEXCOUNT. Summary: Count the number of members in a sorted set between a given lexicographical range Group: sorted-set Requires Redis 2.8.9- Parameters:
key
- the keyrange
- the range- Returns:
- the number of elements in the specified score range.
-
zmpopMin
Execute the command ZMPOP. Summary: Remove and return members with scores in a sorted set Group: sorted-set Requires Redis 7.0.0The elements popped are those with the lowest scores from the first non-empty sorted set.
- Parameters:
keys
- the keys- Returns:
- The popped element (value / score), or
null
if no element can be popped.
-
zmpopMin
Execute the command ZMPOP. Summary: Remove and return members with scores in a sorted set Group: sorted-set Requires Redis 7.0.0The elements popped are those with the lowest scores from the first non-empty sorted set.
- Parameters:
count
- the max number of element to popkeys
- the keys- Returns:
- The popped element (value / score), or
empty
if no element can be popped.
-
zmpopMax
Execute the command ZMPOP. Summary: Remove and return members with scores in a sorted set Group: sorted-set Requires Redis 7.0.0The elements with the highest scores to be popped.
- Parameters:
keys
- the keys- Returns:
- The popped element (value / score), or
null
if no element can be popped.
-
zmpopMax
Execute the command ZMPOP. Summary: Remove and return members with scores in a sorted set Group: sorted-set Requires Redis 7.0.0The elements with the highest scores to be popped.
- Parameters:
count
- the max number of element to popkeys
- the keys- Returns:
- The popped element (value / score), or
empty
if no element can be popped.
-
bzmpopMin
Execute the command BZMPOP. Summary: Remove and return members with scores in a sorted set or block until one is available. Group: sorted-set Requires Redis 7.0.0The elements popped are those with the lowest scores from the first non-empty sorted set.
- Parameters:
timeout
- the timeoutkeys
- the keys- Returns:
- The popped element (value / score), or
null
if no element can be popped.
-
bzmpopMin
Execute the command BZMPOP. Summary: Remove and return members with scores in a sorted set or block until one is available. Group: sorted-set Requires Redis 7.0.0The elements popped are those with the lowest scores from the first non-empty sorted set.
- Parameters:
timeout
- the timeoutcount
- the max number of element to popkeys
- the keys- Returns:
- The popped element (value / score), or
empty
if no element can be popped.
-
bzmpopMax
Execute the command BZMPOP. Summary: Remove and return members with scores in a sorted set or block until one is available. Group: sorted-set Requires Redis 7.0.0The elements with the highest scores to be popped.
- Parameters:
timeout
- the timeoutkeys
- the keys- Returns:
- The popped element (value / score), or
null
if no element can be popped.
-
bzmpopMax
Execute the command BZMPOP. Summary: Remove and return members with scores in a sorted set or block until one is available. Group: sorted-set Requires Redis 7.0.0The elements with the highest scores to be popped.
- Parameters:
timeout
- the timeoutcount
- the max number of element to popkeys
- the keys- Returns:
- The popped element (value / score), or
empty
if no element can be popped.
-
zmscore
Execute the command ZMSCORE. Summary: Get the score associated with the given members in a sorted set Group: sorted-set Requires Redis 6.2.0- Parameters:
key
- the keymembers
- the members- Returns:
- list of scores or
null
associated with the specified member values.
-
zpopmax
Execute the command ZPOPMAX. Summary: Remove and return members with the highest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Parameters:
key
- the key- Returns:
- the popped element and score,
ScoredValue.EMPTY
is not found.
-
zpopmax
Execute the command ZPOPMAX. Summary: Remove and return members with the highest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Parameters:
key
- the key- Returns:
- the popped elements and scores.
-
zpopmin
Execute the command ZPOPMIN. Summary: Remove and return members with the lowest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Parameters:
key
- the key- Returns:
- the popped element and score.
-
zpopmin
Execute the command ZPOPMIN. Summary: Remove and return members with the lowest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Parameters:
key
- the key- Returns:
- the popped elements and scores.
-
zrandmember
Execute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Parameters:
key
- the key- Returns:
- the randomly selected element, or
null
when key does not exist.
-
zrandmember
Execute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Parameters:
key
- the keycount
- the number of member to select- Returns:
- the list of elements, or an empty array when key does not exist.
-
zrandmemberWithScores
Execute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Parameters:
key
- the key- Returns:
- the randomly selected element and its score, or
null
when key does not exist.
-
zrandmemberWithScores
Execute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Parameters:
key
- the keycount
- the number of member to select- Returns:
- the list of elements (with their score), or an empty array when key does not exist.
-
bzpopmin
Execute the command BZPOPMIN. Summary: Remove and return the member with the lowest score from one or more sorted sets, or block until one is available Group: sorted-set Requires Redis 5.0.0- Parameters:
timeout
- the max timeoutkeys
- the keys- Returns:
null
when no element could be popped and the timeout expired. A structure containing the key and theScoredValue
with the popped value and the score.
-
bzpopmax
Execute the command BZPOPMAX. Summary: Remove and return the member with the highest score from one or more sorted sets, or block until one is available Group: sorted-set Requires Redis 5.0.0- Returns:
null
when no element could be popped and the timeout expired. A structure containing the key and theScoredValue
with the popped value and the score.
-
zrange
Execute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0This method extracts a range my rank/index in the stream.
- Parameters:
key
- the keystart
- the start positionstop
- the stop positionargs
- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangeWithScores
io.smallrye.mutiny.Uni<List<ScoredValue<V>>> zrangeWithScores(K key, long start, long stop, ZRangeArgs args) Execute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keystart
- the start positionstop
- the stop positionargs
- the extra ZRANGE parameters- Returns:
- list of elements with their scores in the specified range.
-
zrange
Execute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0This method extracts a range my rank/index in the stream.
- Parameters:
key
- the keystart
- the start positionstop
- the stop position- Returns:
- list of elements in the specified range.
-
zrangeWithScores
Execute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keystart
- the start positionstop
- the stop position- Returns:
- list of elements with their scores in the specified range.
-
zrangebylex
Execute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the rangeargs
- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangebylex
Execute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the range- Returns:
- list of elements in the specified range.
-
zrangebyscore
Execute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the rangeargs
- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangebyscoreWithScores
io.smallrye.mutiny.Uni<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the rangeargs
- the extra ZRANGE parameters- Returns:
- list of elements with their scores in the specified range.
-
zrangebyscore
Execute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the range- Returns:
- list of elements in the specified range.
-
zrangebyscoreWithScores
io.smallrye.mutiny.Uni<List<ScoredValue<V>>> zrangebyscoreWithScores(K key, ScoreRange<Double> range) Execute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the range- Returns:
- list of elements with their scores in the specified range.
-
zrangestore
Execute the command ZRANGESTORE. Summary: Store a range (by rank) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keymin
- the lower bound of the rangemax
- the upper bound of the rangeargs
- the ZRANGESTORE command extra-arguments- Returns:
- the number of elements in the resulting sorted set.
-
zrangestore
Execute the command ZRANGESTORE. Summary: Store a range (by rank) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keymin
- the lower bound of the rangemax
- the upper bound of the range- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebylex
Execute the command ZRANGESTORE. Summary: Store a range (by lexicographical order) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keyrange
- the rangeargs
- the ZRANGESTORE command extra-arguments- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebylex
Execute the command ZRANGESTORE. Summary: Store a range (by lexicographical order) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keyrange
- the range- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebyscore
io.smallrye.mutiny.Uni<Long> zrangestorebyscore(K dst, K src, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGESTORE. Summary: Store a range (by score order) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keyrange
- the rangeargs
- the ZRANGESTORE command extra-arguments- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebyscore
Execute the command ZRANGESTORE. Summary: Store a range (by score order) of members from sorted set into another key Group: sorted-set Requires Redis 6.2.0- Parameters:
dst
- the keysrc
- the keyrange
- the range- Returns:
- the number of elements in the resulting sorted set.
-
zrank
Execute the command ZRANK. Summary: Determine the index of a member in a sorted set Group: sorted-set Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- the rank of member. If member does not exist in the sorted set or key does not exist,
null
.
-
zrem
Execute the command ZREM. Summary: Remove one or more members from a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keymembers
- the members to remove- Returns:
- The number of members removed from the sorted set, not including non-existing members.
-
zremrangebylex
Execute the command ZREMRANGEBYLEX. Summary: Remove all members in a sorted set between the given lexicographical range Group: sorted-set Requires Redis 2.8.9- Parameters:
key
- the keyrange
- the range- Returns:
- the number of elements removed.
-
zremrangebyrank
Execute the command ZREMRANGEBYRANK. Summary: Remove all members in a sorted set within the given indexes Group: sorted-set Requires Redis 2.0.0- Parameters:
key
- the keystart
- the lower bound of the rangestop
- the upper bound of the range- Returns:
- the number of elements removed.
-
zremrangebyscore
Execute the command ZREMRANGEBYSCORE. Summary: Remove all members in a sorted set within the given scores Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keyrange
- the range- Returns:
- the number of elements removed.
-
zrevrank
Execute the command ZREVRANK. Summary: Determine the index of a member in a sorted set, with scores ordered from high to low Group: sorted-set Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- the rank of member. If member does not exist in the sorted set or key does not exist,
null
.
-
zscan
Execute the command ZSCAN. Summary: Incrementally iterate sorted sets elements and associated scores Group: sorted-set Requires Redis 2.8.0- Parameters:
key
- the key- Returns:
- the cursor to iterate over the sorted set
-
zscan
Execute the command ZSCAN. Summary: Incrementally iterate sorted sets elements and associated scores Group: sorted-set Requires Redis 2.8.0- Parameters:
key
- the keyargs
- the extra scan arguments- Returns:
- the cursor to iterate over the sorted set
-
zscore
Execute the command ZSCORE. Summary: Get the score associated with the given member in a sorted set Group: sorted-set Requires Redis 1.2.0- Parameters:
key
- the keymember
- the member- Returns:
- the score of member,
null
if the member cannot be found or the key does not exist
-
zunion
Execute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
args
- the ZUNION command extra-argumentskeys
- the keys- Returns:
- the result of union
-
zunion
Execute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of union
-
zunionWithScores
Execute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
keys
- the keys- Returns:
- the result of union
-
zunionWithScores
Execute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Parameters:
args
- the ZUNION command extra-argumentskeys
- the keys- Returns:
- the result of union
-
zunionstore
Execute the command ZUNIONSTORE. Summary: Add multiple sorted sets and store the resulting sorted set in a new key Group: sorted-set Requires Redis 2.0.0- Parameters:
destination
- the destination keyargs
- the zunionstore command extra-argumentskeys
- the keys- Returns:
- the number of elements in the resulting sorted set at destination.
-
zunionstore
Execute the command ZUNIONSTORE. Summary: Add multiple sorted sets and store the resulting sorted set in a new key Group: sorted-set Requires Redis 2.0.0- Parameters:
destination
- the destination keykeys
- the keys- Returns:
- the number of elements in the resulting sorted set at destination.
-
sort
Execute the command SORT. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Returns:
- the list of sorted elements.
-
sort
Execute the command SORT. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Parameters:
key
- the keysortArguments
- theSORT
command extra-arguments- Returns:
- the list of sorted elements.
-
sortAndStore
Execute the command SORT with theSTORE
option. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Parameters:
sortArguments
- the SORT command extra-arguments- Returns:
- the number of sorted elements in the destination list.
-
sortAndStore
Execute the command SORT with theSTORE
option. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Returns:
- the number of sorted elements in the destination list.
-