Interface RedisZSetCommands
- All Known Subinterfaces:
- DefaultedRedisClusterConnection,- DefaultedRedisConnection,- RedisClusterConnection,- RedisCommands,- RedisConnection,- RedisConnectionUtils.RedisConnectionProxy,- StringRedisConnection
- All Known Implementing Classes:
- AbstractRedisConnection,- DefaultStringRedisConnection,- JedisClusterConnection,- JedisConnection,- LettuceClusterConnection,- LettuceConnection
public interface RedisZSetCommands
ZSet(SortedSet)-specific commands supported by Redis.
- Author:
- Costin Leau, Christoph Strobl, Thomas Darimont, David Liu, Mark Paluch, Andrey Shlykov, Shyngys Sapraliyev
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.static classDeprecated.since 3.0, useRangeorRedisZSetCommands.Range.toRange()instead.static classZADDspecific arguments.
- 
Method SummaryModifier and TypeMethodDescriptionRemove and return the value with its score having the highest score from sorted set atkey.Remove and return the value with its score having the lowest score from sorted set atkey.default BooleanzAdd(byte[] key, double score, byte[] value) Addvalueto a sorted set atkey, or update itsscoreif it already exists.zAdd(byte[] key, double score, byte[] value, RedisZSetCommands.ZAddArgs args) default LongAddtuplesto a sorted set atkey, or update itsscoreif it already exists.zAdd(byte[] key, Set<Tuple> tuples, RedisZSetCommands.ZAddArgs args) zCard(byte[] key) Get the size of sorted set withkey.default LongzCount(byte[] key, double min, double max) Count number of elements within sorted set with scores betweenminandmax.Count number of elements within sorted set with scores betweenRange#minandRange#max.Set<byte[]>zDiff(byte[]... sets) Diff sortedsets.zDiffStore(byte[] destKey, byte[]... sets) Diff sortedsetsand store result in destinationdestKey.zDiffWithScores(byte[]... sets) Diff sortedsets.zIncrBy(byte[] key, double increment, byte[] value) Increment the score of element withvaluein sorted set byincrement.Set<byte[]>zInter(byte[]... sets) Intersect sortedsets.zInterStore(byte[] destKey, byte[]... sets) Intersect sortedsetsand store result in destinationdestKey.default LongzInterStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Intersect sortedsetsand store result in destinationdestKey.zInterStore(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Intersect sortedsetsand store result in destinationdestKey.zInterWithScores(byte[]... sets) Intersect sortedsets.zInterWithScores(Aggregate aggregate, int[] weights, byte[]... sets) Intersect sortedsets.zInterWithScores(Aggregate aggregate, Weights weights, byte[]... sets) Intersect sortedsets.Count number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.zMScore(byte[] key, byte[]... values) Get the scores of elements withvaluesfrom sorted set with keykey.zPopMax(byte[] key) Remove and return the value with its score having the highest score from sorted set atkey.zPopMax(byte[] key, long count) Remove and returncountvalues with their score having the highest score from sorted set atkey.zPopMin(byte[] key) Remove and return the value with its score having the lowest score from sorted set atkey.zPopMin(byte[] key, long count) Remove and returncountvalues with their score having the lowest score from sorted set atkey.byte[]zRandMember(byte[] key) Get random element from sorted set atkey.List<byte[]>zRandMember(byte[] key, long count) Getcountrandom elements from sorted set atkey.zRandMemberWithScore(byte[] key) Get random element from sorted set atkey.zRandMemberWithScore(byte[] key, long count) Getcountrandom elements from sorted set atkey.Set<byte[]>zRange(byte[] key, long start, long end) Get elements betweenstartandendfrom sorted set.default Set<byte[]>zRangeByLex(byte[] key) Get all the elements in the sorted set at key in lexicographical ordering.default Set<byte[]>zRangeByLex(byte[] key, Range<byte[]> range) Get all the elements inRangefrom the sorted set at key in lexicographical ordering.Set<byte[]>zRangeByLex(byte[] key, Range<byte[]> range, Limit limit) Get all the elements inRangefrom the sorted set at key in lexicographical ordering.default Set<byte[]>zRangeByScore(byte[] key, double min, double max) Get elements where score is betweenminandmaxfrom sorted set.default Set<byte[]>zRangeByScore(byte[] key, double min, double max, long offset, long count) Get elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set.default Set<byte[]>zRangeByScore(byte[] key, String min, String max) Deprecated.since 3.0, usezRangeByScore(byte[], org.springframework.data.domain.Range)instead.Set<byte[]>zRangeByScore(byte[] key, String min, String max, long offset, long count) Get elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set.default Set<byte[]>zRangeByScore(byte[] key, Range<? extends Number> range) Get elements where score is betweenRange#minandRange#maxfrom sorted set.Set<byte[]>zRangeByScore(byte[] key, Range<? extends Number> range, Limit limit) Get elements in range fromLimit#counttoLimit#offsetwhere score is betweenRange#minandRange#maxfrom sorted set.zRangeByScoreWithScores(byte[] key, double min, double max) zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) zRangeByScoreWithScores(byte[] key, Range<? extends Number> range) zRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Get set ofTuples in range fromLimit#offsettoLimit#offset + Limit#countwhere score is betweenRange#minandRange#maxfrom sorted set.default LongzRangeStoreByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range) This command is like ZRANGE , but stores the result in the dstKey destination key.zRangeStoreByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) This command is like ZRANGE , but stores the result in the dstKey destination key.default LongzRangeStoreByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range) This command is like ZRANGE, but stores the result in the dstKey destination key.zRangeStoreByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) This command is like ZRANGE, but stores the result in the dstKey destination key.default LongzRangeStoreRevByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range) This command is like ZRANGE … REV , but stores the result in the dstKey destination key.zRangeStoreRevByLex(byte[] dstKey, byte[] srcKey, Range<byte[]> range, Limit limit) This command is like ZRANGE … REV , but stores the result in the dstKey destination key.default LongzRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range) This command is like ZRANGE … REV, but stores the result in the dstKey destination key.zRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) This command is like ZRANGE … REV, but stores the result in the dstKey destination key.zRangeWithScores(byte[] key, long start, long end) zRank(byte[] key, byte[] value) Determine the index of element withvaluein a sorted set.zRem(byte[] key, byte[]... values) Removevaluesfrom sorted set.zRemRange(byte[] key, long start, long end) Remove elements in range betweenstartandendfrom sorted set withkey.zRemRangeByLex(byte[] key, Range<byte[]> range) Remove all elements between the lexicographicalRange.default LongzRemRangeByScore(byte[] key, double min, double max) Remove elements with scores betweenminandmaxfrom sorted set withkey.zRemRangeByScore(byte[] key, Range<? extends Number> range) Remove elements with scores betweenRange#minandRange#maxfrom sorted set withkey.Set<byte[]>zRevRange(byte[] key, long start, long end) Get elements in range fromstarttoendfrom sorted set ordered from high to low.default Set<byte[]>zRevRangeByLex(byte[] key) Get all the elements in the sorted set at key in reversed lexicographical ordering.default Set<byte[]>zRevRangeByLex(byte[] key, Range<byte[]> range) Get all the elements inRangefrom the sorted set at key in reversed lexicographical ordering.Set<byte[]>zRevRangeByLex(byte[] key, Range<byte[]> range, Limit limit) Get all the elements inRangefrom the sorted set at key in reversed lexicographical ordering.default Set<byte[]>zRevRangeByScore(byte[] key, double min, double max) Get elements where score is betweenminandmaxfrom sorted set ordered from high to low.default Set<byte[]>zRevRangeByScore(byte[] key, double min, double max, long offset, long count) Get elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set ordered high -> low.default Set<byte[]>zRevRangeByScore(byte[] key, Range<? extends Number> range) Get elements where score is betweenRange#minandRange#maxfrom sorted set ordered from high to low.Set<byte[]>zRevRangeByScore(byte[] key, Range<? extends Number> range, Limit limit) Get elements in range fromLimit#offsettoLimit#offset + Limit#countwhere score is betweenRange#minandRange#maxfrom sorted set ordered high -> low.zRevRangeByScoreWithScores(byte[] key, double min, double max) zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) Get set ofTuplein range fromstarttoendwhere score is betweenminandmaxfrom sorted set ordered high -> low.zRevRangeByScoreWithScores(byte[] key, Range<? extends Number> range) Get set ofTuplewhere score is betweenRange#minandRange#maxfrom sorted set ordered from high to low.zRevRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Get set ofTuplein range fromLimit#offsettoLimit#countwhere score is betweenRange#minandRange#maxfrom sorted set ordered high -> low.zRevRangeWithScores(byte[] key, long start, long end) zRevRank(byte[] key, byte[] value) Determine the index of element withvaluein a sorted set when scored high to low.zScan(byte[] key, ScanOptions options) Use aCursorto iterate over elements in sorted set atkey.zScore(byte[] key, byte[] value) Get the score of element withvaluefrom sorted set with keykey.Set<byte[]>zUnion(byte[]... sets) Union sortedsets.zUnionStore(byte[] destKey, byte[]... sets) Union sortedsets.default LongzUnionStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Union sortedsetsand store result in destinationdestKey.zUnionStore(byte[] destKey, Aggregate aggregate, Weights weights, byte[]... sets) Union sortedsetsand store result in destinationdestKey.zUnionWithScores(byte[]... sets) Union sortedsets.zUnionWithScores(Aggregate aggregate, int[] weights, byte[]... sets) Union sortedsets.zUnionWithScores(Aggregate aggregate, Weights weights, byte[]... sets) Union sortedsets.
- 
Method Details- 
zAddAddvalueto a sorted set atkey, or update itsscoreif it already exists.- Parameters:
- key- must not be null.
- score- the score.
- value- the value.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zAdd- Parameters:
- key- must not be null.
- score- the score.
- value- the value.
- args- must not be null use- RedisZSetCommands.ZAddArgs.empty()instead.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.5
- See Also:
 
- 
zAddAddtuplesto a sorted set atkey, or update itsscoreif it already exists.- Parameters:
- key- must not be null.
- tuples- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zAdd- Parameters:
- key- must not be null.
- tuples- must not be null.
- args- must not be null use- RedisZSetCommands.ZAddArgs.empty()instead.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.5
- See Also:
 
- 
zRemRemovevaluesfrom sorted set. Return number of removed elements.- Parameters:
- key- must not be null.
- values- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zIncrByIncrement the score of element withvaluein sorted set byincrement.- Parameters:
- key- must not be null.
- increment-
- value- the value.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRandMemberGet random element from sorted set atkey.- Parameters:
- key- must not be null.
- Returns:
- can be null.
- Since:
- 2.6
- See Also:
 
- 
zRandMemberGetcountrandom elements from sorted set atkey.- Parameters:
- key- must not be null.
- count- if the provided- countargument is positive, return a list of distinct fields, capped either at- countor the set size. If- countis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zRandMemberWithScoreGet random element from sorted set atkey.- Parameters:
- key- must not be null.
- Returns:
- can be null.
- Since:
- 2.6
- See Also:
 
- 
zRandMemberWithScoreGetcountrandom elements from sorted set atkey.- Parameters:
- key- must not be null.
- count- if the provided- countargument is positive, return a list of distinct fields, capped either at- countor the set size. If- countis negative, the behavior changes and the command is allowed to return the same value multiple times. In this case, the number of returned values is the absolute value of the specified count.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zRankDetermine the index of element withvaluein a sorted set.- Parameters:
- key- must not be null.
- value- the value. Must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRevRankDetermine the index of element withvaluein a sorted set when scored high to low.- Parameters:
- key- must not be null.
- value- the value.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRangeGet elements betweenstartandendfrom sorted set.- Parameters:
- key- must not be null.
- start-
- end-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeWithScores- Parameters:
- key- must not be null.
- start-
- end-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeByScoreGet elements where score is betweenminandmaxfrom sorted set.- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeByScoreWithScores- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRangeByScoreWithScores- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeByScore@Nullable default Set<byte[]> zRangeByScore(byte[] key, double min, double max, long offset, long count) Get elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set.- Parameters:
- key- must not be null.
- min-
- max-
- offset-
- count-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeByScoreWithScores@Nullable default Set<Tuple> zRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) - Parameters:
- key- must not be null.
- min-
- max-
- offset-
- count-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRangeByScoreWithScores@Nullable Set<Tuple> zRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Get set ofTuples in range fromLimit#offsettoLimit#offset + Limit#countwhere score is betweenRange#minandRange#maxfrom sorted set.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRevRangeGet elements in range fromstarttoendfrom sorted set ordered from high to low.- Parameters:
- key- must not be null.
- start-
- end-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeWithScores- Parameters:
- key- must not be null.
- start-
- end-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeByScoreGet elements where score is betweenminandmaxfrom sorted set ordered from high to low.- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeByScoreGet elements where score is betweenRange#minandRange#maxfrom sorted set ordered from high to low.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRevRangeByScoreWithScores- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- empty Setwhen key does not exists or no members in range. null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeByScore@Nullable default Set<byte[]> zRevRangeByScore(byte[] key, double min, double max, long offset, long count) Get elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set ordered high -> low.- Parameters:
- key- must not be null.
- min-
- max-
- offset-
- count-
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeByScoreGet elements in range fromLimit#offsettoLimit#offset + Limit#countwhere score is betweenRange#minandRange#maxfrom sorted set ordered high -> low.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRevRangeByScoreWithScores@Nullable default Set<Tuple> zRevRangeByScoreWithScores(byte[] key, double min, double max, long offset, long count) Get set ofTuplein range fromstarttoendwhere score is betweenminandmaxfrom sorted set ordered high -> low.- Parameters:
- key- must not be null.
- min-
- max-
- offset-
- count-
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRevRangeByScoreWithScoresGet set ofTuplewhere score is betweenRange#minandRange#maxfrom sorted set ordered from high to low.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRevRangeByScoreWithScores@Nullable Set<Tuple> zRevRangeByScoreWithScores(byte[] key, Range<? extends Number> range, Limit limit) Get set ofTuplein range fromLimit#offsettoLimit#countwhere score is betweenRange#minandRange#maxfrom sorted set ordered high -> low.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zCountCount number of elements within sorted set with scores betweenminandmax.- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zCountCount number of elements within sorted set with scores betweenRange#minandRange#max.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zLexCountCount number of elements within sorted set with value betweenRange#minandRange#maxapplying lexicographical ordering.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.4
- See Also:
 
- 
zPopMinRemove and return the value with its score having the lowest score from sorted set atkey.- Parameters:
- key- must not be null.
- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zPopMinRemove and returncountvalues with their score having the lowest score from sorted set atkey.- Parameters:
- key- must not be null.
- count- number of elements to pop.
- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
bZPopMinRemove and return the value with its score having the lowest score from sorted set atkey.
 Blocks connection until element available ortimeoutreached.- Parameters:
- key- must not be null.
- timeout-
- unit- must not be null.
- Returns:
- can be null.
- Since:
- 2.6
- See Also:
 
- 
zPopMaxRemove and return the value with its score having the highest score from sorted set atkey.- Parameters:
- key- must not be null.
- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zPopMaxRemove and returncountvalues with their score having the highest score from sorted set atkey.- Parameters:
- key- must not be null.
- count- number of elements to pop.
- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
bZPopMaxRemove and return the value with its score having the highest score from sorted set atkey.
 Blocks connection until element available ortimeoutreached.- Parameters:
- key- must not be null.
- timeout-
- unit- must not be null.
- Returns:
- can be null.
- Since:
- 2.6
- See Also:
 
- 
zCardGet the size of sorted set withkey.- Parameters:
- key- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zScoreGet the score of element withvaluefrom sorted set with keykey.- Parameters:
- key- must not be null.
- value- the value.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zMScoreGet the scores of elements withvaluesfrom sorted set with keykey.- Parameters:
- key- must not be null.
- values- the values.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zRemRangeRemove elements in range betweenstartandendfrom sorted set withkey.- Parameters:
- key- must not be null.
- start-
- end-
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRemRangeByLexRemove all elements between the lexicographicalRange.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- the number of elements removed, or null when used in pipeline / transaction.
- Since:
- 2.5
- See Also:
 
- 
zRemRangeByScoreRemove elements with scores betweenminandmaxfrom sorted set withkey.- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zRemRangeByScoreRemove elements with scores betweenRange#minandRange#maxfrom sorted set withkey.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zDiffDiff sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zDiffWithScoresDiff sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zDiffStoreDiff sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zInterIntersect sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zInterWithScoresIntersect sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zInterWithScoresIntersect sortedsets.- Parameters:
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- Since:
- 2.6
- See Also:
 
- 
zInterWithScoresIntersect sortedsets.- Parameters:
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- Since:
- 2.6
- See Also:
 
- 
zInterStoreIntersect sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zInterStore@Nullable default Long zInterStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Intersect sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zInterStoreIntersect sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
 
- 
zUnionUnion sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zUnionWithScoresUnion sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zUnionWithScoresUnion sortedsets.- Parameters:
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zUnionWithScoresUnion sortedsets.- Parameters:
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
 
- 
zUnionStoreUnion sortedsets.- Parameters:
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zUnionStore@Nullable default Long zUnionStore(byte[] destKey, Aggregate aggregate, int[] weights, byte[]... sets) Union sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- See Also:
 
- 
zUnionStoreUnion sortedsetsand store result in destinationdestKey.- Parameters:
- destKey- must not be null.
- aggregate- must not be null.
- weights- must not be null.
- sets- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
 
- 
zScanUse aCursorto iterate over elements in sorted set atkey.- Parameters:
- key- must not be null.
- options- must not be null.
- Returns:
- Since:
- 1.4
- See Also:
 
- 
zRangeByScoreDeprecated.since 3.0, usezRangeByScore(byte[], org.springframework.data.domain.Range)instead.Get elements where score is betweenminandmaxfrom sorted set.- Parameters:
- key- must not be null.
- min-
- max-
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.5
- See Also:
 
- 
zRangeByScoreGet elements where score is betweenRange#minandRange#maxfrom sorted set.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRangeByScoreGet elements in range fromstarttoendwhere score is betweenminandmaxfrom sorted set.- Parameters:
- key- must not be null.
- min- must not be null.
- max- must not be null.
- offset-
- count-
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.5
- See Also:
 
- 
zRangeByScoreGet elements in range fromLimit#counttoLimit#offsetwhere score is betweenRange#minandRange#maxfrom sorted set.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRangeByLexGet all the elements in the sorted set at key in lexicographical ordering.- Parameters:
- key- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRangeByLexGet all the elements inRangefrom the sorted set at key in lexicographical ordering.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRangeByLexGet all the elements inRangefrom the sorted set at key in lexicographical ordering. Result is limited viaRedisZSetCommands.Limit.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.6
- See Also:
 
- 
zRevRangeByLexGet all the elements in the sorted set at key in reversed lexicographical ordering.- Parameters:
- key- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.4
- See Also:
 
- 
zRevRangeByLexGet all the elements inRangefrom the sorted set at key in reversed lexicographical ordering.- Parameters:
- key- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.4
- See Also:
 
- 
zRevRangeByLexGet all the elements inRangefrom the sorted set at key in reversed lexicographical ordering. Result is limited viaRedisZSetCommands.Limit.- Parameters:
- key- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.4
- See Also:
 
- 
zRangeStoreByLexThis command is like ZRANGE , but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreByLexThis command is like ZRANGE , but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreRevByLexThis command is like ZRANGE … REV , but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreRevByLexThis command is like ZRANGE … REV , but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreByScore@Nullable default Long zRangeStoreByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range) This command is like ZRANGE, but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreByScore@Nullable Long zRangeStoreByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) This command is like ZRANGE, but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreRevByScore@Nullable default Long zRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range) This command is like ZRANGE … REV, but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
- 
zRangeStoreRevByScore@Nullable Long zRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, Range<? extends Number> range, Limit limit) This command is like ZRANGE … REV, but stores the result in the dstKey destination key.- Parameters:
- dstKey- must not be null.
- srcKey- must not be null.
- range- must not be null.
- limit- must not be null.
- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
 
 
- 
Limitinstead.