Interface BoundZSetOperations<K,V>
- All Superinterfaces:
BoundKeyOperations<K>
ZSet (or SortedSet) operations bound to a certain key.
- Author:
- Costin Leau, Christoph Strobl, Mark Paluch, Wongoo (望哥), Andrey Shlykov
-
Method Summary
Modifier and TypeMethodDescriptionAddvalueto a sorted set at the bound key, or update itsscoreif it already exists.add(Set<@NonNull ZSetOperations.TypedTuple<V>> tuples) Addtuplesto a sorted set at the bound key, or update itsscoreif it already exists.addIfAbsent(@NonNull V value, double score) Addvalueto a sorted set at the bound key if it does not already exists.addIfAbsent(Set<@NonNull ZSetOperations.TypedTuple<V>> tuples) Addtuplesto a sorted set at the bound key if it does not already exists.count(double min, double max) Count number of elements within sorted set with scores betweenminandmax.difference(@NonNull K otherKey) Diff sortedsets.difference(@NonNull Collection<@NonNull K> otherKeys) Diff sortedsets.default LongdifferenceAndStore(@NonNull K otherKey, @NonNull K destKey) Diff sortedsetsand store result in destinationdestKey.differenceAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey) Diff sortedsetsand store result in destinationdestKey.default Set<@NonNull ZSetOperations.TypedTuple<V>> differenceWithScores(@NonNull K otherKey) Diff sortedsets.Set<@NonNull ZSetOperations.TypedTuple<V>> differenceWithScores(@NonNull Collection<@NonNull K> otherKeys) Diff sortedsets.distinctRandomMembers(long count) Getcountdistinct random elements from set at the bound key.Set<@NonNull ZSetOperations.TypedTuple<V>> distinctRandomMembersWithScore(long count) Getcountdistinct random elements with their score from set at the bound key.@NonNull RedisOperations<K, V> incrementScore(@NonNull V value, double delta) Increment the score of element withvaluein sorted set byincrement.Intersect sortedsets.intersect(@NonNull Collection<@NonNull K> otherKeys) Intersect sortedsets.intersectAndStore(@NonNull K otherKey, @NonNull K destKey) Intersect sorted sets at the bound key andotherKeyand store result in destinationdestKey.intersectAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey) Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.intersectAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate) Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.intersectAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate, @NonNull Weights weights) Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.default Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull K otherKey) Intersect sortedsets.Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull Collection<@NonNull K> otherKeys) Intersect sortedsets.Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate, @NonNull Weights weights) Intersect sortedsets.Count number of elements within sorted set with value betweenRange.getLowerBound()andRange.getUpperBound()applying lexicographical ordering.popMax()Remove and return the value with its score having the highest score from sorted set at the bound key.Set<@NonNull ZSetOperations.TypedTuple<V>> popMax(long count) Remove and returncountvalues with their score having the highest score from sorted set at the bound key.Remove and return the value with its score having the highest score from sorted set at the bound key.default ZSetOperations.TypedTuple<V> Remove and return the value with its score having the highest score from sorted set at the bound key.popMin()Remove and return the value with its score having the lowest score from sorted set at the bound key.Set<@NonNull ZSetOperations.TypedTuple<V>> popMin(long count) Remove and returncountvalues with their score having the lowest score from sorted set at the bound key.Remove and return the value with its score having the lowest score from sorted set at the bound key.default ZSetOperations.TypedTuple<V> Remove and return the value with its score having the lowest score from sorted set at the bound key.Get random element from set at the bound key.randomMembers(long count) Getcountrandom elements from set at the bound key.List<@NonNull ZSetOperations.TypedTuple<V>> randomMembersWithScore(long count) Getcountrandom elements with their score from set at the bound key.Get random element with its score from set at the bound key.range(long start, long end) Get elements betweenstartandendfrom sorted set.default LongrangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range) Store all elements atdstKeywith lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().rangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().default LongrangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range) Store all elements atdstKeywith ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().rangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().rangeByLex(@NonNull Range<String> range) Get all elements with lexicographical ordering with a value betweenRange.getLowerBound()andRange.getUpperBound().rangeByLex(Range<String> range, @NonNull Limit limit) Get all elements n elements, where n =Limit.getCount(), starting atLimit.getOffset()with lexicographical ordering having a value betweenRange.getLowerBound()andRange.getUpperBound().rangeByScore(double min, double max) Get elements where score is betweenminandmaxfrom sorted set.Set<@NonNull ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(double min, double max) Set<@NonNull ZSetOperations.TypedTuple<V>> rangeWithScores(long start, long end) Determine the index of element withvaluein a sorted set.Removevaluesfrom sorted set.removeRange(long start, long end) Remove elements in range betweenstartandendfrom sorted set with the bound key.removeRangeByLex(@NonNull Range<String> range) Remove elements inRangefrom sorted set with the bound key.removeRangeByScore(double min, double max) Remove elements with scores betweenminandmaxfrom sorted set with the bound key.reverseRange(long start, long end) Get elements in range fromstarttoendfrom sorted set ordered from high to low.default LongreverseRangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range) Store all elements atdstKeywith reverse lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().reverseRangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with reverse lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().default LongreverseRangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range) Store all elements atdstKeywith reverse ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().reverseRangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with reverse ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().reverseRangeByLex(@NonNull Range<String> range) Get all elements with reverse lexicographical ordering with a value betweenRange.getLowerBound()andRange.getUpperBound().reverseRangeByLex(@NonNull Range<String> range, @NonNull Limit limit) Get all elements n elements, where n =Limit.getCount(), starting atLimit.getOffset()with reverse lexicographical ordering having a value betweenRange.getLowerBound()andRange.getUpperBound().reverseRangeByScore(double min, double max) Get elements where score is betweenminandmaxfrom sorted set ordered from high to low.Set<@NonNull ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(double min, double max) Set<@NonNull ZSetOperations.TypedTuple<V>> reverseRangeWithScores(long start, long end) reverseRank(@NonNull Object o) Determine the index of element withvaluein a sorted set when scored high to low.Cursor<@NonNull ZSetOperations.TypedTuple<V>> scan(@NonNull ScanOptions options) Use aCursorto iterate over entries in zset at the bound key.Get the score of element withvaluefrom sorted set with key the bound key.Get the scores of elements withvaluesfrom sorted set with key the bound key.size()Returns the number of elements of the sorted set stored with given the bound key.Union sortedsets.union(@NonNull Collection<@NonNull K> otherKeys) Union sortedsets.unionAndStore(@NonNull K otherKey, @NonNull K destKey) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.unionAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.unionAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.unionAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate, @NonNull Weights weights) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.default Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull K otherKey) Union sortedsets.Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys) Union sortedsets.default Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate) Union sorted sets at the bound key andotherKeys.Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate, @NonNull Weights weights) Union sortedsets.zCard()Get the size of sorted set with the bound key.
-
Method Details
-
add
-
addIfAbsent
-
add
Addtuplesto a sorted set at the bound key, or update itsscoreif it already exists.- Parameters:
tuples- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
addIfAbsent
Addtuplesto a sorted set at the bound key if it does not already exists.- Parameters:
tuples- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.5
- See Also:
-
remove
-
incrementScore
-
randomMember
V randomMember()Get random element from set at the bound key.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
distinctRandomMembers
Getcountdistinct random elements from set at the bound key.- Parameters:
count- number of members to return.- Returns:
- empty
Setifkeydoes not exist. - Throws:
IllegalArgumentException- if count is negative.- Since:
- 2.6
- See Also:
-
randomMembers
Getcountrandom elements from set at the bound key.- Parameters:
count- number of members to return.- Returns:
- empty
Listifkeydoes not exist or null when used in pipeline / transaction. - Throws:
IllegalArgumentException- if count is negative.- Since:
- 2.6
- See Also:
-
randomMemberWithScore
ZSetOperations.TypedTuple<V> randomMemberWithScore()Get random element with its score from set at the bound key.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
distinctRandomMembersWithScore
Getcountdistinct random elements with their score from set at the bound key.- Parameters:
count- number of members to return.- Returns:
- empty
Setifkeydoes not exist. - Throws:
IllegalArgumentException- if count is negative.- Since:
- 2.6
- See Also:
-
randomMembersWithScore
Getcountrandom elements with their score from set at the bound key.- Parameters:
count- number of members to return.- Returns:
- empty
Listifkeydoes not exist or null when used in pipeline / transaction. - Throws:
IllegalArgumentException- if count is negative.- Since:
- 2.6
- See Also:
-
rank
-
reverseRank
-
range
-
rangeWithScores
- Parameters:
start-end-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
rangeByScore
-
rangeByScoreWithScores
- Parameters:
min-max-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
reverseRange
-
reverseRangeWithScores
- Parameters:
start-end-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
reverseRangeByScore
-
reverseRangeByScoreWithScores
- Parameters:
min-max-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
count
Count number of elements within sorted set with scores betweenminandmax.- Parameters:
min-max-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
lexCount
Count number of elements within sorted set with value betweenRange.getLowerBound()andRange.getUpperBound()applying lexicographical ordering.- Parameters:
range- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
popMin
ZSetOperations.TypedTuple<V> popMin()Remove and return the value with its score having the lowest score from sorted set at the bound key.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
popMin
Remove and returncountvalues with their score having the lowest score from sorted set at the bound key.- Parameters:
count- number of elements to pop.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
popMin
Remove and return the value with its score having the lowest score from sorted set at the bound key. Blocks connection until element available ortimeoutreached.- Parameters:
timeout-unit- must not be null.- Returns:
- can be null.
- Since:
- 2.6
- See Also:
-
popMin
Remove and return the value with its score having the lowest score from sorted set at the bound key. Blocks connection until element available ortimeoutreached.- Parameters:
timeout- must not be null.- Returns:
- can be null.
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
popMax
ZSetOperations.TypedTuple<V> popMax()Remove and return the value with its score having the highest score from sorted set at the bound key.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
popMax
Remove and returncountvalues with their score having the highest score from sorted set at the bound key.- Parameters:
count- number of elements to pop.- Returns:
- null when the sorted set is empty or used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
popMax
Remove and return the value with its score having the highest score from sorted set at the bound key. Blocks connection until element available ortimeoutreached.- Parameters:
timeout-unit- must not be null.- Returns:
- can be null.
- Since:
- 2.6
- See Also:
-
popMax
Remove and return the value with its score having the highest score from sorted set at the bound key. Blocks connection until element available ortimeoutreached.- Parameters:
timeout- must not be null.- Returns:
- can be null.
- Throws:
IllegalArgumentException- if the timeout is null or negative.- Since:
- 2.6
- See Also:
-
size
Long size()Returns the number of elements of the sorted set stored with given the bound key.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
zCard
Long zCard()Get the size of sorted set with the bound key.- Returns:
- null when used in pipeline / transaction.
- Since:
- 1.3
- See Also:
-
score
-
score
-
removeRange
Remove elements in range betweenstartandendfrom sorted set with the bound key.- Parameters:
start-end-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
removeRangeByLex
-
removeRangeByScore
Remove elements with scores betweenminandmaxfrom sorted set with the bound key.- Parameters:
min-max-- Returns:
- null when used in pipeline / transaction.
- See Also:
-
unionAndStore
Long unionAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate, @NonNull Weights weights) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.aggregate- must not be null.weights- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
-
difference
-
difference
Diff sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
differenceWithScores
Diff sortedsets.- Parameters:
otherKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
differenceWithScores
Set<@NonNull ZSetOperations.TypedTuple<V>> differenceWithScores(@NonNull Collection<@NonNull K> otherKeys) Diff sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
differenceAndStore
-
differenceAndStore
Diff sortedsetsand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
intersect
-
intersect
Intersect sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
intersectWithScores
Intersect sortedsets.- Parameters:
otherKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
intersectWithScores
Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull Collection<@NonNull K> otherKeys) Intersect sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
intersectWithScores
Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate, @NonNull Weights weights) Intersect sortedsets.- Parameters:
otherKeys- must not be null.aggregate- must not be null.weights- must not be null.- Returns:
- Since:
- 2.6
- See Also:
-
intersectAndStore
-
intersectAndStore
Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
intersectAndStore
Long intersectAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate) Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.aggregate- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
-
intersectAndStore
Long intersectAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate, @NonNull Weights weights) Intersect sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.aggregate- must not be null.weights- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
-
union
-
union
Union sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
unionWithScores
Union sortedsets.- Parameters:
otherKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
unionWithScores
Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys) Union sortedsets.- Parameters:
otherKeys- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
unionWithScores
default Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate) Union sorted sets at the bound key andotherKeys.- Parameters:
otherKeys- must not be null.aggregate- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
unionWithScores
Set<@NonNull ZSetOperations.TypedTuple<V>> unionWithScores(@NonNull Collection<@NonNull K> otherKeys, @NonNull Aggregate aggregate, @NonNull Weights weights) Union sortedsets.- Parameters:
otherKeys- must not be null.aggregate- must not be null.weights- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.6
- See Also:
-
unionAndStore
-
unionAndStore
Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.- Returns:
- null when used in pipeline / transaction.
- See Also:
-
unionAndStore
Long unionAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey, @NonNull Aggregate aggregate) Union sorted sets at the bound key andotherKeysand store result in destinationdestKey.- Parameters:
otherKeys- must not be null.destKey- must not be null.aggregate- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 2.1
- See Also:
-
scan
Use aCursorto iterate over entries in zset at the bound key.
Important: CallCloseableIterator.close()when done to avoid resource leaks.- Parameters:
options- must not be null.- Returns:
- the result cursor providing access to the scan result. Must be closed once fully processed (e.g. through a try-with-resources clause).
- Since:
- 1.4
-
rangeByLex
Get all elements with lexicographical ordering with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
range- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
rangeByLex
Get all elements n elements, where n =Limit.getCount(), starting atLimit.getOffset()with lexicographical ordering having a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
range- must not be null.limit- can be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeByLex
Get all elements with reverse lexicographical ordering with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
range- must not be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeByLex
Get all elements n elements, where n =Limit.getCount(), starting atLimit.getOffset()with reverse lexicographical ordering having a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
range- must not be null.limit- can be null.- Returns:
- null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
rangeAndStoreByLex
Store all elements atdstKeywith lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
rangeAndStoreByLex
Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeAndStoreByLex
Store all elements atdstKeywith reverse lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeAndStoreByLex
Long reverseRangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with reverse lexicographical ordering from ZSET at the bound key with a value betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
rangeAndStoreByScore
Store all elements atdstKeywith ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
rangeAndStoreByScore
Long rangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeAndStoreByScore
Store all elements atdstKeywith reverse ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
reverseRangeAndStoreByScore
Long reverseRangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range, @NonNull Limit limit) Store n elements atdstKey, where n =Limit.getCount(), starting atLimit.getOffset()with reverse ordering by score from ZSET at the bound key with a score betweenRange.getLowerBound()andRange.getUpperBound().- Parameters:
dstKey- must not be null.range- must not be null.limit- must not be null.- Returns:
- the number of stored elements or null when used in pipeline / transaction.
- Since:
- 3.0
- See Also:
-
getOperations
@NonNull RedisOperations<K,V> getOperations()- Specified by:
getOperationsin interfaceBoundKeyOperations<K>- Returns:
- the underlying
RedisOperationsused to execute commands.
-