Class BlockingSortedSetCommandsImpl<K,V>
- All Implemented Interfaces:
RedisCommands,SortedSetCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
ds, timeout -
Constructor Summary
ConstructorsConstructorDescriptionBlockingSortedSetCommandsImpl(RedisDataSource ds, ReactiveSortedSetCommands<K, V> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionList<ScoredValue<V>>Execute the command BZMPOP.Execute the command BZMPOP.List<ScoredValue<V>>Execute the command BZMPOP.Execute the command BZMPOP.Execute the command BZPOPMAX.Execute the command BZPOPMIN.Execute the command SORT.Execute the command SORT.longsortAndStore(K key, K destination) Execute the command SORT with theSTOREoption.longsortAndStore(K key, K destination, SortArgs sortArguments) Execute the command SORT with theSTOREoption.booleanExecute the command ZADD.final intzadd(K key, ScoredValue<V>... items) Execute the command ZADD.booleanExecute the command ZADD.final intzadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... items) Execute the command ZADD.intExecute the command ZADD.intExecute the command ZADD.doubleExecute the command ZADD.Execute the command ZADD.longExecute the command ZCARD.longzcount(K key, ScoreRange<Double> range) Execute the command ZCOUNT.Execute the command ZDIFF.longzdiffstore(K destination, K... keys) Execute the command ZDIFFSTORE.List<ScoredValue<V>>zdiffWithScores(K... keys) Execute the command ZDIFF.doubleExecute the command ZINCRBY.zinter(ZAggregateArgs arguments, K... keys) Execute the command ZINTER.Execute the command ZINTER.longzintercard(long limit, K... keys) Execute the command ZINTERCARD.longzintercard(K... keys) Execute the command ZINTERCARD.longzinterstore(K destination, ZAggregateArgs arguments, K... keys) Execute the command ZINTERSTORE.longzinterstore(K destination, K... keys) Execute the command ZINTERSTORE.List<ScoredValue<V>>zinterWithScores(ZAggregateArgs arguments, K... keys) Execute the command ZINTER.List<ScoredValue<V>>zinterWithScores(K... keys) Execute the command ZINTER.longExecute the command ZLEXCOUNT.List<ScoredValue<V>>Execute the command ZMPOP.Execute the command ZMPOP.List<ScoredValue<V>>Execute the command ZMPOP.Execute the command ZMPOP.Execute the command ZMSCORE.Execute the command ZPOPMAX.List<ScoredValue<V>>Execute the command ZPOPMAX.Execute the command ZPOPMIN.List<ScoredValue<V>>Execute the command ZPOPMIN.zrandmember(K key) Execute the command ZRANDMEMBER.zrandmember(K key, int count) Execute the command ZRANDMEMBER.zrandmemberWithScores(K key) Execute the command ZRANDMEMBER.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.List<ScoredValue<V>>zrangebyscoreWithScores(K key, ScoreRange<Double> range) Execute the command ZRANGE.List<ScoredValue<V>>zrangebyscoreWithScores(K key, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGE.longzrangestore(K dst, K src, long min, long max) Execute the command ZRANGESTORE.longzrangestore(K dst, K src, long min, long max, ZRangeArgs args) Execute the command ZRANGESTORE.longzrangestorebylex(K dst, K src, Range<String> range) Execute the command ZRANGESTORE.longzrangestorebylex(K dst, K src, Range<String> range, ZRangeArgs args) Execute the command ZRANGESTORE.longzrangestorebyscore(K dst, K src, ScoreRange<Double> range) Execute the command ZRANGESTORE.longzrangestorebyscore(K dst, K src, ScoreRange<Double> range, ZRangeArgs args) Execute the command ZRANGESTORE.List<ScoredValue<V>>zrangeWithScores(K key, long start, long stop) Execute the command ZRANGE.List<ScoredValue<V>>zrangeWithScores(K key, long start, long stop, ZRangeArgs args) Execute the command ZRANGE.Execute the command ZRANK.intExecute the command ZREM.longzremrangebylex(K key, Range<String> range) Execute the command ZREMRANGEBYLEX.longzremrangebyrank(K key, long start, long stop) Execute the command ZREMRANGEBYRANK.longzremrangebyscore(K key, ScoreRange<Double> range) Execute the command ZREMRANGEBYSCORE.Execute the command ZREVRANK.Execute the command ZSCAN.Execute the command ZSCAN.Execute the command ZSCORE.zunion(ZAggregateArgs args, K... keys) Execute the command ZUNION.Execute the command ZUNION.longzunionstore(K destination, ZAggregateArgs args, K... keys) Execute the command ZUNIONSTORE.longzunionstore(K destination, K... keys) Execute the command ZUNIONSTORE.List<ScoredValue<V>>zunionWithScores(ZAggregateArgs args, K... keys) Execute the command ZUNION.List<ScoredValue<V>>zunionWithScores(K... keys) Execute the command ZUNION.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
getDataSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommands
getDataSource
-
Constructor Details
-
BlockingSortedSetCommandsImpl
public BlockingSortedSetCommandsImpl(RedisDataSource ds, ReactiveSortedSetCommands<K, V> reactive, Duration timeout)
-
-
Method Details
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyscore- the scoremember- the member- Returns:
trueif the element was added,falseotherwise
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyitems- the map of score/value to be added- Returns:
- the number of added elements
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyitems- the pairs of value/score to be added- Returns:
- the number of added elements
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyzAddArgs- the extra parameterscore- the scoremember- the member- Returns:
trueif the element was added or changed,falseotherwise
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyzAddArgs- the extra parameteritems- the map of value/score to be added- Returns:
- the number of added items
-
zadd
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zaddin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyzAddArgs- the extra parameteritems- the pairs of score/value to be added- Returns:
- the number of added items
-
zaddincr
Description copied from interface:SortedSetCommandsExecute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists applying theINCRoption Group: sorted-set Requires Redis 1.2.0This variant of
ZADDacts likeZINCRBY. Only one score-element pair can be specified in this mode.- Specified by:
zaddincrin interfaceSortedSetCommands<K,V> - Parameters:
key- the key.score- the increment.member- the member.- Returns:
- the new score of the updated member
-
zaddincr
Description copied from interface:SortedSetCommandsExecute the command ZADD. Summary: Add one or more members to a sorted set, or update its score if it already exists applying theINCRoption Group: sorted-set Requires Redis 1.2.0This variant of
ZADDacts likeZINCRBY. Only one score-element pair can be specified in this mode.- Specified by:
zaddincrin interfaceSortedSetCommands<K,V> - Parameters:
key- the key.score- the increment.member- the member.- Returns:
- the new score of the updated member, or
emptyif the operation was aborted (when called with either the XX or the NX option).
-
zcard
Description copied from interface:SortedSetCommandsExecute the command ZCARD. Summary: Get the number of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zcardin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the cardinality (number of elements) of the sorted set.
0if the key does not exist.
-
zcount
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zcountin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- the number of elements in the specified score range.
-
zdiff
Description copied from interface:SortedSetCommandsExecute the command ZDIFF. Summary: Subtract multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zdiffin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of the difference.
-
zdiffWithScores
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zdiffWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of the difference.
-
zdiffstore
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zdiffstorein interfaceSortedSetCommands<K,V> - Parameters:
destination- the destination keykeys- the keys to compare- Returns:
- the number of elements in the resulting sorted set at destination.
-
zincrby
Description copied from interface:SortedSetCommandsExecute the command ZINCRBY. Summary: Increment the score of a member in a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zincrbyin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the new score of member
-
zinter
Description copied from interface:SortedSetCommandsExecute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zinterin interfaceSortedSetCommands<K,V> - Parameters:
arguments- the ZINTER command extra-argumentskeys- the keys- Returns:
- the result of intersection.
-
zinter
Description copied from interface:SortedSetCommandsExecute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zinterin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of intersection.
-
zinterWithScores
Description copied from interface:SortedSetCommandsExecute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zinterWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
arguments- the ZINTER command extra-argumentskeys- the keys- Returns:
- the result of intersection with the scores
-
zinterWithScores
Description copied from interface:SortedSetCommandsExecute the command ZINTER. Summary: Intersect multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zinterWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of intersection with the scores
-
zintercard
Description copied from interface:SortedSetCommandsExecute the command ZINTERCARD. Summary: Intersect multiple sorted sets and return the cardinality of the result Group: sorted-set Requires Redis 7.0.0- Specified by:
zintercardin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the number of elements in the resulting intersection.
-
zintercard
Description copied from interface:SortedSetCommandsExecute the command ZINTERCARD. Summary: Intersect multiple sorted sets and return the cardinality of the result Group: sorted-set Requires Redis 7.0.0- Specified by:
zintercardin interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zinterstorein interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zinterstorein interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zlexcountin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- the number of elements in the specified score range.
-
zmpopMin
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zmpopMinin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- The popped element (value / score), or
nullif no element can be popped.
-
zmpopMin
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zmpopMinin interfaceSortedSetCommands<K,V> - Parameters:
count- the max number of element to popkeys- the keys- Returns:
- The popped element (value / score), or
emptyif no element can be popped.
-
zmpopMax
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zmpopMaxin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- The popped element (value / score), or
nullif no element can be popped.
-
zmpopMax
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zmpopMaxin interfaceSortedSetCommands<K,V> - Parameters:
count- the max number of element to popkeys- the keys- Returns:
- The popped element (value / score), or
emptyif no element can be popped.
-
bzmpopMin
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
bzmpopMinin interfaceSortedSetCommands<K,V> - Parameters:
timeout- the timeoutkeys- the keys- Returns:
- The popped element (value / score), or
nullif no element can be popped.
-
bzmpopMin
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
bzmpopMinin interfaceSortedSetCommands<K,V> - Parameters:
timeout- the timeoutcount- the max number of element to popkeys- the keys- Returns:
- The popped element (value / score), or
emptyif no element can be popped.
-
bzmpopMax
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
bzmpopMaxin interfaceSortedSetCommands<K,V> - Parameters:
timeout- the timeoutkeys- the keys- Returns:
- The popped element (value / score), or
nullif no element can be popped.
-
bzmpopMax
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
bzmpopMaxin interfaceSortedSetCommands<K,V> - Parameters:
timeout- the timeoutcount- the max number of element to popkeys- the keys- Returns:
- The popped element (value / score), or
emptyif no element can be popped.
-
zmscore
Description copied from interface:SortedSetCommandsExecute the command ZMSCORE. Summary: Get the score associated with the given members in a sorted set Group: sorted-set Requires Redis 6.2.0- Specified by:
zmscorein interfaceSortedSetCommands<K,V> - Parameters:
key- the keymembers- the members- Returns:
- list of scores or
emptyassociated with the specified member values.
-
zpopmax
Description copied from interface:SortedSetCommandsExecute the command ZPOPMAX. Summary: Remove and return members with the highest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Specified by:
zpopmaxin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the popped element and score,
ScoredValue.EMPTYis no member can be popped.
-
zpopmax
Description copied from interface:SortedSetCommandsExecute the command ZPOPMAX. Summary: Remove and return members with the highest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Specified by:
zpopmaxin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the popped elements and scores.
-
zpopmin
Description copied from interface:SortedSetCommandsExecute the command ZPOPMIN. Summary: Remove and return members with the lowest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Specified by:
zpopminin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the popped element and score,
ScoredValue.EMPTYis no member can be popped.
-
zpopmin
Description copied from interface:SortedSetCommandsExecute the command ZPOPMIN. Summary: Remove and return members with the lowest scores in a sorted set Group: sorted-set Requires Redis 5.0.0- Specified by:
zpopminin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the popped elements and scores.
-
zrandmember
Description copied from interface:SortedSetCommandsExecute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Specified by:
zrandmemberin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the randomly selected element, or
nullwhen key does not exist.
-
zrandmember
Description copied from interface:SortedSetCommandsExecute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Specified by:
zrandmemberin interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Specified by:
zrandmemberWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the randomly selected element and its score, or
nullwhen key does not exist.
-
zrandmemberWithScores
Description copied from interface:SortedSetCommandsExecute the command ZRANDMEMBER. Summary: Get one or multiple random elements from a sorted set Group: sorted-set Requires Redis 6.2.0- Specified by:
zrandmemberWithScoresin interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
bzpopminin interfaceSortedSetCommands<K,V> - Parameters:
timeout- the max timeoutkeys- the keys- Returns:
nullwhen no element could be popped and the timeout expired. A structure containing the key and theScoredValuewith the popped value and the score.
-
bzpopmax
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
bzpopmaxin interfaceSortedSetCommands<K,V> - Returns:
nullwhen no element could be popped and the timeout expired. A structure containing the key and theScoredValuewith the popped value and the score.
-
zrange
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zrangein interfaceSortedSetCommands<K,V> - Parameters:
key- the keystart- the start positionstop- the stop positionargs- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangeWithScores
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangeWithScoresin interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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.
- Specified by:
zrangein interfaceSortedSetCommands<K,V> - Parameters:
key- the keystart- the start positionstop- the stop position- Returns:
- list of elements in the specified range.
-
zrangeWithScores
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangeWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
key- the keystart- the start positionstop- the stop position- Returns:
- list of elements with their scores in the specified range.
-
zrangebylex
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebylexin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the rangeargs- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangebylex
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebylexin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- list of elements in the specified range.
-
zrangebyscore
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebyscorein interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the rangeargs- the extra ZRANGE parameters- Returns:
- list of elements in the specified range.
-
zrangebyscoreWithScores
public List<ScoredValue<V>> zrangebyscoreWithScores(K key, ScoreRange<Double> range, ZRangeArgs args) Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using lexicographical ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebyscoreWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the rangeargs- the extra ZRANGE parameters- Returns:
- list of elements with their scores in the specified range.
-
zrangebyscore
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebyscorein interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- list of elements in the specified range.
-
zrangebyscoreWithScores
Description copied from interface:SortedSetCommandsExecute the command ZRANGE. Summary: Return a range of members in a sorted set using score ranges Group: sorted-set Requires Redis 1.2.0- Specified by:
zrangebyscoreWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- list of elements with their scores in the specified range.
-
zrangestore
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorein interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorein interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorebylexin interfaceSortedSetCommands<K,V> - Parameters:
dst- the keysrc- the keyrange- the rangeargs- the ZRANGESTORE command extra-arguments- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebylex
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorebylexin interfaceSortedSetCommands<K,V> - Parameters:
dst- the keysrc- the keyrange- the range- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebyscore
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorebyscorein interfaceSortedSetCommands<K,V> - Parameters:
dst- the keysrc- the keyrange- the rangeargs- the ZRANGESTORE command extra-arguments- Returns:
- the number of elements in the resulting sorted set.
-
zrangestorebyscore
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrangestorebyscorein interfaceSortedSetCommands<K,V> - Parameters:
dst- the keysrc- the keyrange- the range- Returns:
- the number of elements in the resulting sorted set.
-
zrank
Description copied from interface:SortedSetCommandsExecute the command ZRANK. Summary: Determine the index of a member in a sorted set Group: sorted-set Requires Redis 2.0.0- Specified by:
zrankin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the rank of member. If member does not exist in the sorted set or key does not exist,
empty.
-
zrem
Description copied from interface:SortedSetCommandsExecute the command ZREM. Summary: Remove one or more members from a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zremin interfaceSortedSetCommands<K,V> - Parameters:
key- the keymembers- the members to remove- Returns:
- The number of members removed from the sorted set, not including non-existing members.
-
zremrangebylex
Description copied from interface:SortedSetCommandsExecute the command ZREMRANGEBYLEX. Summary: Remove all members in a sorted set between the given lexicographical range Group: sorted-set Requires Redis 2.8.9- Specified by:
zremrangebylexin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- the number of elements removed.
-
zremrangebyrank
Description copied from interface:SortedSetCommandsExecute the command ZREMRANGEBYRANK. Summary: Remove all members in a sorted set within the given indexes Group: sorted-set Requires Redis 2.0.0- Specified by:
zremrangebyrankin interfaceSortedSetCommands<K,V> - Parameters:
key- the keystart- the lower bound of the rangestop- the upper bound of the range- Returns:
- the number of elements removed.
-
zremrangebyscore
Description copied from interface:SortedSetCommandsExecute the command ZREMRANGEBYSCORE. Summary: Remove all members in a sorted set within the given scores Group: sorted-set Requires Redis 1.2.0- Specified by:
zremrangebyscorein interfaceSortedSetCommands<K,V> - Parameters:
key- the keyrange- the range- Returns:
- the number of elements removed.
-
zrevrank
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zrevrankin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the rank of member. If member does not exist in the sorted set or key does not exist,
empty.
-
zscan
Description copied from interface:SortedSetCommandsExecute the command ZSCAN. Summary: Incrementally iterate sorted sets elements and associated scores Group: sorted-set Requires Redis 2.8.0- Specified by:
zscanin interfaceSortedSetCommands<K,V> - Parameters:
key- the key- Returns:
- the cursor to iterate over the sorted set
-
zscan
Description copied from interface:SortedSetCommandsExecute the command ZSCAN. Summary: Incrementally iterate sorted sets elements and associated scores Group: sorted-set Requires Redis 2.8.0- Specified by:
zscanin interfaceSortedSetCommands<K,V> - Parameters:
key- the keyargs- the extra scan arguments- Returns:
- the cursor to iterate over the sorted set
-
zscore
Description copied from interface:SortedSetCommandsExecute the command ZSCORE. Summary: Get the score associated with the given member in a sorted set Group: sorted-set Requires Redis 1.2.0- Specified by:
zscorein interfaceSortedSetCommands<K,V> - Parameters:
key- the keymember- the member- Returns:
- the score of member,
emptyif the member cannot be found or the key does not exist
-
zunion
Description copied from interface:SortedSetCommandsExecute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zunionin interfaceSortedSetCommands<K,V> - Parameters:
args- the ZUNION command extra-argumentskeys- the keys- Returns:
- the result of union
-
zunion
Description copied from interface:SortedSetCommandsExecute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zunionin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of union
-
zunionWithScores
Description copied from interface:SortedSetCommandsExecute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zunionWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
args- the ZUNION command extra-argumentskeys- the keys- Returns:
- the result of union
-
zunionWithScores
Description copied from interface:SortedSetCommandsExecute the command ZUNION. Summary: Add multiple sorted sets Group: sorted-set Requires Redis 6.2.0- Specified by:
zunionWithScoresin interfaceSortedSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- the result of union
-
zunionstore
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zunionstorein interfaceSortedSetCommands<K,V> - 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
Description copied from interface:SortedSetCommandsExecute 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- Specified by:
zunionstorein interfaceSortedSetCommands<K,V> - Parameters:
destination- the destination keykeys- the keys- Returns:
- the number of elements in the resulting sorted set at destination.
-
sort
Description copied from interface:SortedSetCommandsExecute the command SORT. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Specified by:
sortin interfaceSortedSetCommands<K,V> - Returns:
- the list of sorted elements.
-
sort
Description copied from interface:SortedSetCommandsExecute the command SORT. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Specified by:
sortin interfaceSortedSetCommands<K,V> - Parameters:
key- the keysortArguments- theSORTcommand extra-arguments- Returns:
- the list of sorted elements.
-
sortAndStore
Description copied from interface:SortedSetCommandsExecute the command SORT with theSTOREoption. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Specified by:
sortAndStorein interfaceSortedSetCommands<K,V> sortArguments- the SORT command extra-arguments- Returns:
- the number of sorted elements in the destination list.
-
sortAndStore
Description copied from interface:SortedSetCommandsExecute the command SORT with theSTOREoption. Summary: Sort the elements in a list, set or sorted set Group: generic Requires Redis 1.0.0- Specified by:
sortAndStorein interfaceSortedSetCommands<K,V> - Returns:
- the number of sorted elements in the destination list.
-