Packages

class SortedSetCommands[K, V] extends AnyRef

Exposes the set of redis sorted set commands available.

Source
SortedSetCommands.scala
Note

Does yet not support zRevRange, zRevRangeWithScores, zRemRangeByRank.

See also

Sorted set commands reference.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SortedSetCommands
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def bZPopMax(timeout: FiniteDuration, keys: K*): Task[Option[(K, VScore[V])]]

    Removes and returns a member with the highest scores in the sorted set stored at one of the keys.

    Removes and returns a member with the highest scores in the sorted set stored at one of the keys.

    returns

    Multi-bulk containing the name of the key, the score and the popped member.

    See also

    BZPOPMAX.

  6. def bZPopMin(timeout: FiniteDuration, keys: K*): Task[Option[(K, VScore[V])]]

    Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.

    Removes and returns a member with the lowest scores in the sorted set stored at one of the keys.

    returns

    Multi-bulk containing the name of the key, the score and the popped member.

    See also

    BZPOPMIN.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. def zAdd(key: K, zArg: ZArg, scoredValues: List[VScore[V]]): Task[Long]
  23. def zAdd(key: K, zArg: ZArg, scoredValues: VScore[V]*): Task[Long]
  24. def zAdd(key: K, zArg: ZArg, score: Double, value: V): Task[Long]
  25. def zAdd(key: K, scoredValues: List[VScore[V]]): Task[Long]
  26. def zAdd(key: K, scoredValues: VScore[V]*): Task[Long]

    Add one or more members to a sorted set, or update its score if it already exists.

    Add one or more members to a sorted set, or update its score if it already exists.

    returns

    The number of elements added to the sorted sets, without including elements already existing for which the score was updated.

    See also

    ZADD.

  27. def zAdd(key: K, score: Double, member: V): Task[Boolean]

    Add one or more members to a sorted set, or update its score if it already exists.

    Add one or more members to a sorted set, or update its score if it already exists.

    returns

    Long integer-reply specifically: True if the member was added to the sorted sets False if the member was already present, in which case the score is also been updated.

    See also

    ZADD.

  28. def zAddIncr(key: K, zArg: ZArg, score: Double, member: V): Task[Long]

    Add one or more members to a sorted set, or update its score depending on ZArgs.

    Add one or more members to a sorted set, or update its score depending on ZArgs.

    returns

    The score number of the updated element.

    See also

    ZADD.

  29. def zAddIncr(key: K, score: Double, member: V): Task[Long]

    Add one or more members to a sorted set, or update its score if it already exists applying the INCR option.

    Add one or more members to a sorted set, or update its score if it already exists applying the INCR option.

    returns

    The total number of elements changed

    See also

    ZADD.

  30. def zCard(key: K): Task[Long]

    Get the number of members in a sorted set.

    Get the number of members in a sorted set.

    returns

    the cardinality (number of elements) of the sorted set, or 0 if key does not exist..

    See also

    ZCARD.

  31. def zCount(key: K, range: ZRange[_ <: Number]): Task[Long]

    Count the number of members in a sorted set within a given ZRange.

    Count the number of members in a sorted set within a given ZRange.

    returns

    The number of elements in the specified score range.

    See also

    ZCOUNT.

  32. def zGetAll(key: K): Observable[VScore[V]]

    Return all members with scores in a sorted set, by score, with scores ordered from low to high.

  33. def zIncrBy(key: K, amount: Double, member: V): Task[Double]

    Increment the score of a member in a sorted set.

    Increment the score of a member in a sorted set.

    returns

    The new score of member.

    See also

    ZINCRBY.

  34. def zInterStore(destination: K, keys: K*): Task[Long]

    Intersect multiple sorted sets and store the resulting sorted set in a new key.

    Intersect multiple sorted sets and store the resulting sorted set in a new key.

    returns

    The number of elements in the resulting sorted set at destination.

    See also

    ZINTERSTORE.

  35. def zLexCount(key: K, range: ZRange[_ <: V]): Task[Long]

    Count the number of members in a sorted set between a given lexicographical range.

    Count the number of members in a sorted set between a given lexicographical range.

    returns

    The number of elements in the specified score range.

    See also

    ZLEXCOUNT.

  36. def zMembers(key: K): Observable[V]

    Return a range of members in a sorted set, from low to high.

  37. def zPopMax(key: K, count: Long): Observable[VScore[V]]

    Removes and returns up to count members with the highest scores in the sorted set stored at key.

    Removes and returns up to count members with the highest scores in the sorted set stored at key.

    returns

    Scored values of popped scores and elements.

    See also

    ZPOPMAX.

  38. def zPopMax(key: K): Task[VScore[V]]

    Removes and returns up the highest scores in the sorted set stored at key.

    Removes and returns up the highest scores in the sorted set stored at key.

    returns

    Scored value of the removed element.

    See also

    ZPOPMAX.

  39. def zPopMin(key: K, count: Long): Observable[VScore[V]]

    Removes and returns up to count members with the lowest scores in the sorted set stored at key.

    Removes and returns up to count members with the lowest scores in the sorted set stored at key.

    returns

    Scored values of the popped scores and elements.

    See also

    ZPOPMIN.

  40. def zPopMin(key: K): Task[VScore[V]]

    Removes and returns the lowest score in the sorted set stored at key.

    Removes and returns the lowest score in the sorted set stored at key.

    returns

    Scored value the removed element.

    See also

    ZPOPMIN.

  41. def zRange(key: K, start: Long, stop: Long): Observable[V]

    Return a range of members in a sorted set.

    Return a range of members in a sorted set.

    returns

    Elements in the specified range.

    See also

    ZRANGE.

  42. def zRangeByLex(key: K, range: ZRange[_ <: V], limit: Int, offset: Int = 0): Observable[V]

    Return a range of members in a sorted set, by lexicographical range.

    Return a range of members in a sorted set, by lexicographical range.

    returns

    Elements in the specified range.

    See also

    ZRANGEBYLEX.

  43. def zRangeByLex(key: K, range: ZRange[_ <: V]): Observable[V]

    Return a range of members in a sorted set, by lexicographical range.

    Return a range of members in a sorted set, by lexicographical range.

    returns

    Elements in the specified range.

    See also

    ZRANGEBYLEX.

  44. def zRangeByScore(key: K, range: ZRange[_ <: Number], limit: Int, offset: Int = 0): Observable[V]

    Return a range of members in a sorted set, by score.

    Return a range of members in a sorted set, by score.

    returns

    Elements in the specified score range.

    See also

    ZRANGEBYSCORE.

  45. def zRangeByScore(key: K, range: ZRange[_ <: Number]): Observable[V]

    Return a range of members in a sorted set, by score.

    Return a range of members in a sorted set, by score.

    returns

    Elements in the specified score range.

    See also

    ZRANGEBYSCORE.

  46. def zRangeByScoreWithScores(key: K, range: ZRange[_ <: Number], limit: Int, offset: Int = 0): Observable[VScore[V]]

    Return a range of members with score in a sorted set, by score.

    Return a range of members with score in a sorted set, by score.

    returns

    Elements in the specified score range.

  47. def zRangeByScoreWithScores(key: K, range: ZRange[_ <: Number]): Observable[VScore[V]]

    Return a range of members with score in a sorted set, by score.

    Return a range of members with score in a sorted set, by score.

    returns

    Scored values in the specified score range.

  48. def zRank(key: K, member: V): Task[Option[Long]]

    Determine the index of a member in a sorted set.

    Determine the index of a member in a sorted set.

    returns

    The rank of member. None if the member does not exist in the sorted set or key does not exist.

    See also

    ZRANK.

  49. def zRem(key: K, members: V*): Task[Long]

    Remove one or more members from a sorted set.

    Remove one or more members from a sorted set.

    returns

    The number of members removed from the sorted set, not including non existing members.

    See also

    ZREM.

  50. def zRemRangeByLex(key: K, range: ZRange[_ <: V]): Task[Long]

    Remove all members in a sorted set between the given lexicographical range.

    Remove all members in a sorted set between the given lexicographical range.

    returns

    The number of elements removed.

    See also

    ZREMRANGEBYLEX.

  51. def zRemRangeByScore(key: K, range: ZRange[_ <: Number]): Task[Long]

    Remove all members in a sorted set within the given scores.

    Remove all members in a sorted set within the given scores.

    returns

    The number of elements removed.

    See also

    ZREMRANGEBYSCORE.

  52. def zRevGetAll(key: K): Observable[VScore[V]]

    Return all members with scores in a sorted set, by score, with scores ordered from high to low.

  53. def zRevMembers(key: K): Observable[V]

    All members in a sorted set, from high to low.

  54. def zRevRangeByLex(key: K, range: ZRange[_ <: V], limit: Int, offset: Int = 0): Observable[V]

    Return a range of members in a sorted set, by lexicographical range ordered from high to low.

    Return a range of members in a sorted set, by lexicographical range ordered from high to low.

    returns

    Elements in the specified score range.

    See also

    ZREVRANGEBYLEX.

  55. def zRevRangeByLex(key: K, range: ZRange[_ <: V]): Observable[V]

    Return a range of members in a sorted set, by lexicographical range ordered from high to low.

    Return a range of members in a sorted set, by lexicographical range ordered from high to low.

    returns

    Elements in the specified score range.

    See also

    ZREMRANGEBYLEX.

  56. def zRevRangeByScore(key: K, range: ZRange[_ <: Number], limit: Int, offset: Int = 0): Observable[V]

    Return a range of members in a sorted set, by score, with scores ordered from high to low.

    Return a range of members in a sorted set, by score, with scores ordered from high to low. Alias for zRevRangeByScoreWithScores

    returns

    Elements in the specified score range.

    See also

    ZREVRANGEBYSCORE.

  57. def zRevRangeByScore(key: K, range: ZRange[_ <: Number]): Observable[V]

    Return a range of members in a sorted set, by score, with scores ordered from high to low.

    Return a range of members in a sorted set, by score, with scores ordered from high to low.

    returns

    Elements in the specified score range.

    See also

    ZREVRANGEBYSCORE.

  58. def zRevRangeByScoreWithScores(key: K, range: ZRange[_ <: Number], limit: Int, offset: Int = 0): Observable[VScore[V]]

    Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.

    Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.

    returns

    Elements in the specified score range.

  59. def zRevRangeByScoreWithScores(key: K, range: ZRange[_ <: Number]): Observable[VScore[V]]

    Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.

    Return a range of members with scores in a sorted set, by score, with scores ordered from high to low. Alias to zRevRangeByScoreWithScores

    returns

    Elements in the specified score range.

  60. def zRevRank(key: K, member: V): Task[Option[Long]]

    Determine the index of a member in a sorted set, with scores ordered from high to low.

    Determine the index of a member in a sorted set, with scores ordered from high to low.

    returns

    The rank of member. None if member or the key does not exist.

    See also

    ZREVRANK.

  61. def zScore(key: K, member: V): Task[Double]

    Get the score associated with the given member in a sorted set.

    Get the score associated with the given member in a sorted set.

    key

    the key.

    member

    the member type: value.

    returns

    Double number representing the score string, '0.0' if the member was not present.

    See also

    ZSCORE.

  62. def zUnionStore(destination: K, keys: K*): Task[Long]

    Add multiple sorted sets and store the resulting sorted set in a new key.

    Add multiple sorted sets and store the resulting sorted set in a new key.

    returns

    The number of elements in the resulting sorted set at destination.

    See also

    SUNIONSTORE.

Inherited from AnyRef

Inherited from Any

Ungrouped