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
- Alphabetic
- By Inheritance
- SortedSetCommands
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zAdd(key: K, zArg: ZArg, scoredValues: List[VScore[V]]): Task[Long]
- def zAdd(key: K, zArg: ZArg, scoredValues: VScore[V]*): Task[Long]
- def zAdd(key: K, zArg: ZArg, score: Double, value: V): Task[Long]
- def zAdd(key: K, scoredValues: List[VScore[V]]): Task[Long]
- 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.
- 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.
- 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.
- 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.
- 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
- 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
- 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.
- def zIncrBy(key: K, amount: Double, member: V): Task[Double]
Increment the score of a member in a sorted set.
- 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
- 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
- def zMembers(key: K): Observable[V]
Return a range of members in a sorted set, from low to high.
- 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
- 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
- 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
- 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
- def zRange(key: K, start: Long, stop: Long): Observable[V]
Return a range of members in a sorted set.
- 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
- 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
- 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
- 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
- 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.
- 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.
- 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
- 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.
- 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
- 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
- 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.
- def zRevMembers(key: K): Observable[V]
All members in a sorted set, from high to low.
- 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
- 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
- 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
- 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
- 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.
- 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.
- 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
- 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
- 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