K - Key type.V - Value type.public interface RedisSortedSetCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
Long |
zadd(K key,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists.
|
Long |
zadd(K key,
Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Long |
zadd(K key,
ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Long |
zadd(K key,
ZAddArgs zAddArgs,
double score,
V member)
Add one or more members to a sorted set, or update its score if it already exists.
|
Long |
zadd(K key,
ZAddArgs zAddArgs,
Object... scoresAndValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Long |
zadd(K key,
ZAddArgs zAddArgs,
ScoredValue<V>... scoredValues)
Add one or more members to a sorted set, or update its score if it already exists.
|
Double |
zaddincr(K key,
double score,
V member)
ZADD acts like ZINCRBY
|
Long |
zcard(K key)
Get the number of members in a sorted set.
|
Long |
zcount(K key,
double min,
double max)
Count the members in a sorted set with scores within the given values.
|
Long |
zcount(K key,
String min,
String max)
Count the members in a sorted set with scores within the given values.
|
Double |
zincrby(K key,
double amount,
K member)
Increment the score of a member in a sorted set.
|
Long |
zinterstore(K destination,
K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.
|
Long |
zinterstore(K destination,
ZStoreArgs storeArgs,
K... keys)
Intersect multiple sorted sets and store the resulting sorted set in a new key.
|
Long |
zlexcount(K key,
String min,
String max)
Count the number of members in a sorted set between a given lexicographical range.
|
List<V> |
zrange(K key,
long start,
long stop)
Return a range of members in a sorted set, by index.
|
Long |
zrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Return a range of members in a sorted set, by index.
|
List<V> |
zrangebylex(K key,
String min,
String max)
Return a range of members in a sorted set, by lexicographical range.
|
List<V> |
zrangebylex(K key,
String min,
String max,
long offset,
long count)
Return a range of members in a sorted set, by lexicographical range.
|
List<V> |
zrangebyscore(K key,
double min,
double max)
Return a range of members in a sorted set, by score.
|
List<V> |
zrangebyscore(K key,
double min,
double max,
long offset,
long count)
Return a range of members in a sorted set, by score.
|
List<V> |
zrangebyscore(K key,
String min,
String max)
Return a range of members in a sorted set, by score.
|
List<V> |
zrangebyscore(K key,
String min,
String max,
long offset,
long count)
Return a range of members in a sorted set, by score.
|
Long |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
double min,
double max)
Stream over a range of members in a sorted set, by score.
|
Long |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
double min,
double max,
long offset,
long count)
Stream over range of members in a sorted set, by score.
|
Long |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
String min,
String max)
Stream over a range of members in a sorted set, by score.
|
Long |
zrangebyscore(ValueStreamingChannel<V> channel,
K key,
String min,
String max,
long offset,
long count)
Stream over a range of members in a sorted set, by score.
|
List<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
double min,
double max)
Return a range of members with score in a sorted set, by score.
|
List<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
double min,
double max,
long offset,
long count)
Return a range of members with score in a sorted set, by score.
|
List<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
String min,
String max)
Return a range of members with score in a sorted set, by score.
|
List<ScoredValue<V>> |
zrangebyscoreWithScores(K key,
String min,
String max,
long offset,
long count)
Return a range of members with score in a sorted set, by score.
|
Long |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double min,
double max)
Stream over a range of members with scores in a sorted set, by score.
|
Long |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double min,
double max,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score.
|
Long |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String min,
String max)
Stream over a range of members with scores in a sorted set, by score.
|
Long |
zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String min,
String max,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score.
|
List<ScoredValue<V>> |
zrangeWithScores(K key,
long start,
long stop)
Return a range of members with scores in a sorted set, by index.
|
Long |
zrangeWithScores(ScoredValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members with scores in a sorted set, by index.
|
Long |
zrank(K key,
V member)
Determine the index of a member in a sorted set.
|
Long |
zrem(K key,
V... members)
Remove one or more members from a sorted set.
|
Long |
zremrangebylex(K key,
String min,
String max)
Remove all members in a sorted set between the given lexicographical range.
|
Long |
zremrangebyrank(K key,
long start,
long stop)
Remove all members in a sorted set within the given indexes.
|
Long |
zremrangebyscore(K key,
double min,
double max)
Remove all members in a sorted set within the given scores.
|
Long |
zremrangebyscore(K key,
String min,
String max)
Remove all members in a sorted set within the given scores.
|
List<V> |
zrevrange(K key,
long start,
long stop)
Return a range of members in a sorted set, by index, with scores ordered from high to low.
|
Long |
zrevrange(ValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members in a sorted set, by index, with scores ordered from high to low.
|
List<V> |
zrevrangebyscore(K key,
double max,
double min)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
List<V> |
zrevrangebyscore(K key,
double max,
double min,
long offset,
long count)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
List<V> |
zrevrangebyscore(K key,
String max,
String min)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
List<V> |
zrevrangebyscore(K key,
String max,
String min,
long offset,
long count)
Return a range of members in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
double max,
double min)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
double max,
double min,
long offset,
long count)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
String max,
String min)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscore(ValueStreamingChannel<V> channel,
K key,
String max,
String min,
long offset,
long count)
Stream over a range of members in a sorted set, by score, with scores ordered from high to low.
|
List<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
double max,
double min)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
List<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
double max,
double min,
long offset,
long count)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
List<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
String max,
String min)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
List<ScoredValue<V>> |
zrevrangebyscoreWithScores(K key,
String max,
String min,
long offset,
long count)
Return a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double max,
double min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
double max,
double min,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String max,
String min)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
Long |
zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel,
K key,
String max,
String min,
long offset,
long count)
Stream over a range of members with scores in a sorted set, by score, with scores ordered from high to low.
|
List<ScoredValue<V>> |
zrevrangeWithScores(K key,
long start,
long stop)
Return a range of members with scores in a sorted set, by index, with scores ordered from high to low.
|
Long |
zrevrangeWithScores(ScoredValueStreamingChannel<V> channel,
K key,
long start,
long stop)
Stream over a range of members with scores in a sorted set, by index, with scores ordered from high to low.
|
Long |
zrevrank(K key,
V member)
Determine the index of a member in a sorted set, with scores ordered from high to low.
|
ScoredValueScanCursor<V> |
zscan(K key)
Incrementally iterate sorted sets elements and associated scores.
|
ScoredValueScanCursor<V> |
zscan(K key,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
ScoredValueScanCursor<V> |
zscan(K key,
ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.
|
ScoredValueScanCursor<V> |
zscan(K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
StreamScanCursor |
zscan(ScoredValueStreamingChannel<V> channel,
K key)
Incrementally iterate sorted sets elements and associated scores.
|
StreamScanCursor |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
StreamScanCursor |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor)
Incrementally iterate sorted sets elements and associated scores.
|
StreamScanCursor |
zscan(ScoredValueStreamingChannel<V> channel,
K key,
ScanCursor scanCursor,
ScanArgs scanArgs)
Incrementally iterate sorted sets elements and associated scores.
|
Double |
zscore(K key,
V member)
Get the score associated with the given member in a sorted set.
|
Long |
zunionstore(K destination,
K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.
|
Long |
zunionstore(K destination,
ZStoreArgs storeArgs,
K... keys)
Add multiple sorted sets and store the resulting sorted set in a new key.
|
Long zadd(K key, double score, V member)
key - the keyscore - the scoremember - the memberLong zadd(K key, Object... scoresAndValues)
key - the keyscoresAndValues - the scoresAndValue tuples (score,value,score,value,...)Long zadd(K key, ScoredValue<V>... scoredValues)
key - the keyscoredValues - the scored valuesLong zadd(K key, ZAddArgs zAddArgs, double score, V member)
key - the keyzAddArgs - arguments for zaddscore - the scoremember - the memberLong zadd(K key, ZAddArgs zAddArgs, Object... scoresAndValues)
key - the keyzAddArgs - arguments for zaddscoresAndValues - the scoresAndValue tuples (score,value,score,value,...)Long zadd(K key, ZAddArgs zAddArgs, ScoredValue<V>... scoredValues)
key - the kezAddArgs - arguments for zaddscoredValues - the scored valuesDouble zaddincr(K key, double score, V member)
key - the keyscore - the scoremember - the memberLong zcard(K key)
key - the keykey
does not exist.Long zcount(K key, double min, double max)
key - the keymin - min scoremax - max scoreLong zcount(K key, String min, String max)
key - the keymin - min scoremax - max scoreDouble zincrby(K key, double amount, K member)
key - the keyamount - the increment type: longmember - the member type: keymember (a double precision floating point number), represented
as string.Long zinterstore(K destination, K... keys)
destination - the destinationkeys - the keysdestination.Long zinterstore(K destination, ZStoreArgs storeArgs, K... keys)
destination - the destinationstoreArgs - the storeArgskeys - the keysdestination.List<V> zrange(K key, long start, long stop)
key - the keystart - the startstop - the stopList<ScoredValue<V>> zrangeWithScores(K key, long start, long stop)
key - the keystart - the startstop - the stopList<V> zrangebyscore(K key, double min, double max)
key - the keymin - min scoremax - max scoreList<V> zrangebyscore(K key, String min, String max)
key - the keymin - min scoremax - max scoreList<V> zrangebyscore(K key, double min, double max, long offset, long count)
key - the keymin - min scoremax - max scoreoffset - the offsetcount - the countList<V> zrangebyscore(K key, String min, String max, long offset, long count)
key - the keymin - min scoremax - max scoreoffset - the offsetcount - the countList<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max)
key - the keymin - min scoremax - max scoreList<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max)
key - the keymin - min scoremax - max scoreList<ScoredValue<V>> zrangebyscoreWithScores(K key, double min, double max, long offset, long count)
key - the keymin - min scoremax - max scoreoffset - the offsetcount - the countList<ScoredValue<V>> zrangebyscoreWithScores(K key, String min, String max, long offset, long count)
key - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
channel - streaming channel that receives a call for every valuekey - the keystart - the startstop - the stopLong zrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
channel - streaming channel that receives a call for every valuekey - the keystart - the startstop - the stopLong zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreLong zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreLong zrangebyscore(ValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrangebyscore(ValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreLong zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreLong zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double min, double max, long offset, long count)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String min, String max, long offset, long count)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrank(K key, V member)
key - the keymember - the member type: valuemember. If member does not exist in the sorted set or key
does not exist,Long zrem(K key, V... members)
key - the keymembers - the member type: valueLong zremrangebyrank(K key, long start, long stop)
key - the keystart - the start type: longstop - the stop type: longLong zremrangebyscore(K key, double min, double max)
key - the keymin - min scoremax - max scoreLong zremrangebyscore(K key, String min, String max)
key - the keymin - min scoremax - max scoreList<V> zrevrange(K key, long start, long stop)
key - the keystart - the startstop - the stopList<ScoredValue<V>> zrevrangeWithScores(K key, long start, long stop)
key - the keystart - the startstop - the stopList<V> zrevrangebyscore(K key, double max, double min)
key - the keymin - min scoremax - max scoreList<V> zrevrangebyscore(K key, String max, String min)
key - the keymin - min scoremax - max scoreList<V> zrevrangebyscore(K key, double max, double min, long offset, long count)
key - the keymax - max scoremin - min scoreoffset - the withscorescount - the nullList<V> zrevrangebyscore(K key, String max, String min, long offset, long count)
key - the keymax - max scoremin - min scoreoffset - the offsetcount - the countList<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min)
key - the keymax - max scoremin - min scoreList<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min)
key - the keymax - max scoremin - min scoreList<ScoredValue<V>> zrevrangebyscoreWithScores(K key, double max, double min, long offset, long count)
key - the keymax - max scoremin - min scoreoffset - the offsetcount - the countList<ScoredValue<V>> zrevrangebyscoreWithScores(K key, String max, String min, long offset, long count)
key - the keymax - max scoremin - min scoreoffset - the offsetcount - the countLong zrevrange(ValueStreamingChannel<V> channel, K key, long start, long stop)
channel - streaming channel that receives a call for every scored valuekey - the keystart - the startstop - the stopLong zrevrangeWithScores(ScoredValueStreamingChannel<V> channel, K key, long start, long stop)
channel - streaming channel that receives a call for every scored valuekey - the keystart - the startstop - the stopLong zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min)
channel - streaming channel that receives a call for every valuekey - the keymax - max scoremin - min scoreLong zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreLong zrevrangebyscore(ValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrevrangebyscore(ValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
channel - streaming channel that receives a call for every valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreLong zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreLong zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, double max, double min, long offset, long count)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrevrangebyscoreWithScores(ScoredValueStreamingChannel<V> channel, K key, String max, String min, long offset, long count)
channel - streaming channel that receives a call for every scored valuekey - the keymin - min scoremax - max scoreoffset - the offsetcount - the countLong zrevrank(K key, V member)
key - the keymember - the member type: valuemember. If member does not exist in the sorted set or key
does not exist,Double zscore(K key, V member)
key - the keymember - the member type: valuemember (a double precision floating point number), represented as
string.Long zunionstore(K destination, K... keys)
destination - destination keykeys - source keysdestination.Long zunionstore(K destination, ZStoreArgs storeArgs, K... keys)
destination - the destinationstoreArgs - the storeArgskeys - the keysdestination.ScoredValueScanCursor<V> zscan(K key)
key - the keyScoredValueScanCursor<V> zscan(K key, ScanArgs scanArgs)
key - the keyscanArgs - scan argumentsScoredValueScanCursor<V> zscan(K key, ScanCursor scanCursor, ScanArgs scanArgs)
key - the keyscanCursor - cursor to resume from a previous scan, must not be nullscanArgs - scan argumentsScoredValueScanCursor<V> zscan(K key, ScanCursor scanCursor)
key - the keyscanCursor - cursor to resume from a previous scan, must not be nullStreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key)
channel - streaming channel that receives a call for every scored valuekey - the keyStreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanArgs scanArgs)
channel - streaming channel that receives a call for every scored valuekey - the keyscanArgs - scan argumentsStreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor, ScanArgs scanArgs)
channel - streaming channel that receives a call for every scored valuekey - the keyscanCursor - cursor to resume from a previous scan, must not be nullscanArgs - scan argumentsStreamScanCursor zscan(ScoredValueStreamingChannel<V> channel, K key, ScanCursor scanCursor)
channel - streaming channel that receives a call for every scored valuekey - the keyscanCursor - cursor to resume from a previous scan, must not be nullLong zlexcount(K key, String min, String max)
key - the keymin - min scoremax - max scoreLong zremrangebylex(K key, String min, String max)
key - the keymin - min scoremax - max scoreList<V> zrangebylex(K key, String min, String max)
key - the keymin - min scoremax - max scoreList<V> zrangebylex(K key, String min, String max, long offset, long count)
key - the keymin - min scoremax - max scoreoffset - the offsetcount - the countCopyright © 2016. All rights reserved.