Interface BoundZSetOperations<K,V>

All Superinterfaces:
BoundKeyOperations<K>

@NullUnmarked public interface BoundZSetOperations<K,V> extends BoundKeyOperations<K>
ZSet (or SortedSet) operations bound to a certain key.
Author:
Costin Leau, Christoph Strobl, Mark Paluch, Wongoo (望哥), Andrey Shlykov
  • Method Details

    • add

      Boolean add(@NonNull V value, double score)
      Add value to a sorted set at the bound key, or update its score if it already exists.
      Parameters:
      value - the value.
      score - the score.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • addIfAbsent

      Boolean addIfAbsent(@NonNull V value, double score)
      Add value to a sorted set at the bound key if it does not already exists.
      Parameters:
      value - the value.
      score - the score.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.5
      See Also:
    • add

      Long add(Set<@NonNull ZSetOperations.TypedTuple<V>> tuples)
      Add tuples to a sorted set at the bound key, or update its score if it already exists.
      Parameters:
      tuples - must not be null.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • addIfAbsent

      Long addIfAbsent(Set<@NonNull ZSetOperations.TypedTuple<V>> tuples)
      Add tuples to 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

      Long remove(@NonNull Object @NonNull ... values)
      Remove values from sorted set. Return number of removed elements.
      Parameters:
      values - must not be null.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • incrementScore

      Double incrementScore(@NonNull V value, double delta)
      Increment the score of element with value in sorted set by increment.
      Parameters:
      value - the value.
      delta - the delta to add. Can be negative.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • 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

      Set<V> distinctRandomMembers(long count)
      Get count distinct random elements from set at the bound key.
      Parameters:
      count - number of members to return.
      Returns:
      empty Set if key does not exist.
      Throws:
      IllegalArgumentException - if count is negative.
      Since:
      2.6
      See Also:
    • randomMembers

      List<V> randomMembers(long count)
      Get count random elements from set at the bound key.
      Parameters:
      count - number of members to return.
      Returns:
      empty List if key does 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

      Set<@NonNull ZSetOperations.TypedTuple<V>> distinctRandomMembersWithScore(long count)
      Get count distinct random elements with their score from set at the bound key.
      Parameters:
      count - number of members to return.
      Returns:
      empty Set if key does not exist.
      Throws:
      IllegalArgumentException - if count is negative.
      Since:
      2.6
      See Also:
    • randomMembersWithScore

      List<@NonNull ZSetOperations.TypedTuple<V>> randomMembersWithScore(long count)
      Get count random elements with their score from set at the bound key.
      Parameters:
      count - number of members to return.
      Returns:
      empty List if key does not exist or null when used in pipeline / transaction.
      Throws:
      IllegalArgumentException - if count is negative.
      Since:
      2.6
      See Also:
    • rank

      Long rank(@NonNull Object o)
      Determine the index of element with value in a sorted set.
      Parameters:
      o - the value.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • reverseRank

      Long reverseRank(@NonNull Object o)
      Determine the index of element with value in a sorted set when scored high to low.
      Parameters:
      o - the value.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • range

      Set<V> range(long start, long end)
      Get elements between start and end from sorted set.
      Parameters:
      start -
      end -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • rangeWithScores

      Set<@NonNull ZSetOperations.TypedTuple<V>> rangeWithScores(long start, long end)
      Get set of Tuples between start and end from sorted set.
      Parameters:
      start -
      end -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • rangeByScore

      Set<V> rangeByScore(double min, double max)
      Get elements where score is between min and max from sorted set.
      Parameters:
      min -
      max -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • rangeByScoreWithScores

      Set<@NonNull ZSetOperations.TypedTuple<V>> rangeByScoreWithScores(double min, double max)
      Get set of Tuples where score is between min and max from sorted set.
      Parameters:
      min -
      max -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • reverseRange

      Set<V> reverseRange(long start, long end)
      Get elements in range from start to end from sorted set ordered from high to low.
      Parameters:
      start -
      end -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • reverseRangeWithScores

      Set<@NonNull ZSetOperations.TypedTuple<V>> reverseRangeWithScores(long start, long end)
      Get set of Tuples in range from start to end from sorted set ordered from high to low.
      Parameters:
      start -
      end -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • reverseRangeByScore

      Set<V> reverseRangeByScore(double min, double max)
      Get elements where score is between min and max from sorted set ordered from high to low.
      Parameters:
      min -
      max -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • reverseRangeByScoreWithScores

      Set<@NonNull ZSetOperations.TypedTuple<V>> reverseRangeByScoreWithScores(double min, double max)
      Get set of Tuple where score is between min and max from sorted set ordered from high to low.
      Parameters:
      min -
      max -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • count

      Long count(double min, double max)
      Count number of elements within sorted set with scores between min and max.
      Parameters:
      min -
      max -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • lexCount

      Long lexCount(@NonNull Range<String> range)
      Count number of elements within sorted set with value between Range.getLowerBound() and Range.getUpperBound() applying lexicographical ordering.
      Parameters:
      range - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • 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

      Set<@NonNull ZSetOperations.TypedTuple<V>> popMin(long count)
      Remove and return count values 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

      ZSetOperations.TypedTuple<V> popMin(long timeout, @NonNull TimeUnit unit)
      Remove and return the value with its score having the lowest score from sorted set at the bound key. Blocks connection until element available or timeout reached.
      Parameters:
      timeout -
      unit - must not be null.
      Returns:
      can be null.
      Since:
      2.6
      See Also:
    • popMin

      default ZSetOperations.TypedTuple<V> popMin(@NonNull Duration timeout)
      Remove and return the value with its score having the lowest score from sorted set at the bound key. Blocks connection until element available or timeout reached.
      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

      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

      Set<@NonNull ZSetOperations.TypedTuple<V>> popMax(long count)
      Remove and return count values 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

      ZSetOperations.TypedTuple<V> popMax(long timeout, @NonNull TimeUnit unit)
      Remove and return the value with its score having the highest score from sorted set at the bound key. Blocks connection until element available or timeout reached.
      Parameters:
      timeout -
      unit - must not be null.
      Returns:
      can be null.
      Since:
      2.6
      See Also:
    • popMax

      default ZSetOperations.TypedTuple<V> popMax(@NonNull Duration timeout)
      Remove and return the value with its score having the highest score from sorted set at the bound key. Blocks connection until element available or timeout reached.
      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

      Double score(@NonNull Object o)
      Get the score of element with value from sorted set with key the bound key.
      Parameters:
      o - the value.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • score

      List<Double> score(@NonNull Object @NonNull ... o)
      Get the scores of elements with values from sorted set with key the bound key.
      Parameters:
      o - the values.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • removeRange

      Long removeRange(long start, long end)
      Remove elements in range between start and end from sorted set with the bound key.
      Parameters:
      start -
      end -
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • removeRangeByLex

      Long removeRangeByLex(@NonNull Range<String> range)
      Remove elements in Range from sorted set with the bound key.
      Parameters:
      range - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • removeRangeByScore

      Long removeRangeByScore(double min, double max)
      Remove elements with scores between min and max from 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 and otherKeys and store result in destination destKey.
      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

      default Set<V> difference(@NonNull K otherKey)
      Diff sorted sets.
      Parameters:
      otherKey - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • difference

      Set<V> difference(@NonNull Collection<@NonNull K> otherKeys)
      Diff sorted sets.
      Parameters:
      otherKeys - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • differenceWithScores

      default Set<@NonNull ZSetOperations.TypedTuple<V>> differenceWithScores(@NonNull K otherKey)
      Diff sorted sets.
      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 sorted sets.
      Parameters:
      otherKeys - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • differenceAndStore

      default Long differenceAndStore(@NonNull K otherKey, @NonNull K destKey)
      Diff sorted sets and store result in destination destKey.
      Parameters:
      otherKey - must not be null.
      destKey - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • differenceAndStore

      Long differenceAndStore(@NonNull Collection<@NonNull K> otherKeys, @NonNull K destKey)
      Diff sorted sets and store result in destination destKey.
      Parameters:
      otherKeys - must not be null.
      destKey - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • intersect

      default Set<V> intersect(@NonNull K otherKey)
      Intersect sorted sets.
      Parameters:
      otherKey - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • intersect

      Set<V> intersect(@NonNull Collection<@NonNull K> otherKeys)
      Intersect sorted sets.
      Parameters:
      otherKeys - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • intersectWithScores

      default Set<@NonNull ZSetOperations.TypedTuple<V>> intersectWithScores(@NonNull K otherKey)
      Intersect sorted sets.
      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 sorted sets.
      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 sorted sets.
      Parameters:
      otherKeys - must not be null.
      aggregate - must not be null.
      weights - must not be null.
      Returns:
      Since:
      2.6
      See Also:
    • intersectAndStore

      Long intersectAndStore(@NonNull K otherKey, @NonNull K destKey)
      Intersect sorted sets at the bound key and otherKey and store result in destination destKey.
      Parameters:
      otherKey - 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)
      Intersect sorted sets at the bound key and otherKeys and store result in destination destKey.
      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 and otherKeys and store result in destination destKey.
      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 and otherKeys and store result in destination destKey.
      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

      default Set<V> union(@NonNull K otherKey)
      Union sorted sets.
      Parameters:
      otherKey - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      2.6
      See Also:
    • union

      Set<V> union(@NonNull Collection<@NonNull K> otherKeys)
      Union sorted sets.
      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 K otherKey)
      Union sorted sets.
      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 sorted sets.
      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 and otherKeys.
      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 sorted sets.
      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

      Long unionAndStore(@NonNull K otherKey, @NonNull K destKey)
      Union sorted sets at the bound key and otherKeys and store result in destination destKey.
      Parameters:
      otherKey - 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)
      Union sorted sets at the bound key and otherKeys and store result in destination destKey.
      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 and otherKeys and store result in destination destKey.
      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

      Cursor<@NonNull ZSetOperations.TypedTuple<V>> scan(@NonNull ScanOptions options)
      Use a Cursor to iterate over entries in zset at the bound key.
      Important: Call CloseableIterator.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

      default Set<V> rangeByLex(@NonNull Range<String> range)
      Get all elements with lexicographical ordering with a value between Range.getLowerBound() and Range.getUpperBound().
      Parameters:
      range - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • rangeByLex

      Set<V> rangeByLex(Range<String> range, @NonNull Limit limit)
      Get all elements n elements, where n = Limit.getCount(), starting at Limit.getOffset() with lexicographical ordering having a value between Range.getLowerBound() and Range.getUpperBound().
      Parameters:
      range - must not be null.
      limit - can be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • reverseRangeByLex

      default Set<V> reverseRangeByLex(@NonNull Range<String> range)
      Get all elements with reverse lexicographical ordering with a value between Range.getLowerBound() and Range.getUpperBound().
      Parameters:
      range - must not be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • reverseRangeByLex

      Set<V> reverseRangeByLex(@NonNull Range<String> range, @NonNull Limit limit)
      Get all elements n elements, where n = Limit.getCount(), starting at Limit.getOffset() with reverse lexicographical ordering having a value between Range.getLowerBound() and Range.getUpperBound().
      Parameters:
      range - must not be null.
      limit - can be null.
      Returns:
      null when used in pipeline / transaction.
      Since:
      3.0
      See Also:
    • rangeAndStoreByLex

      default Long rangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range)
      Store all elements at dstKey with lexicographical ordering from ZSET at the bound key with a value between Range.getLowerBound() and Range.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

      Long rangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range, @NonNull Limit limit)
      Store n elements at dstKey, where n = Limit.getCount(), starting at Limit.getOffset() with lexicographical ordering from ZSET at the bound key with a value between Range.getLowerBound() and Range.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

      default Long reverseRangeAndStoreByLex(@NonNull K dstKey, @NonNull Range<String> range)
      Store all elements at dstKey with reverse lexicographical ordering from ZSET at the bound key with a value between Range.getLowerBound() and Range.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 at dstKey, where n = Limit.getCount(), starting at Limit.getOffset() with reverse lexicographical ordering from ZSET at the bound key with a value between Range.getLowerBound() and Range.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

      default Long rangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range)
      Store all elements at dstKey with ordering by score from ZSET at the bound key with a score between Range.getLowerBound() and Range.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 at dstKey, where n = Limit.getCount(), starting at Limit.getOffset() with ordering by score from ZSET at the bound key with a score between Range.getLowerBound() and Range.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

      default Long reverseRangeAndStoreByScore(@NonNull K dstKey, @NonNull Range<? extends Number> range)
      Store all elements at dstKey with reverse ordering by score from ZSET at the bound key with a score between Range.getLowerBound() and Range.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 at dstKey, where n = Limit.getCount(), starting at Limit.getOffset() with reverse ordering by score from ZSET at the bound key with a score between Range.getLowerBound() and Range.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:
      getOperations in interface BoundKeyOperations<K>
      Returns:
      the underlying RedisOperations used to execute commands.