Class ZRangeCommandKt
-
- All Implemented Interfaces:
public final class ZRangeCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestzrangeCommand(String key, ZRange range, Boolean rev, ZRangeLimit limit, ElementSink<StreamWithLength> sink)final static RedisRequestzrangeWithScoresCommand(String key, ZRange range, Boolean rev, ZRangeLimit limit, ScoredElementSink<StreamWithLength> sink)Same as zrangeCommand, but with the score of each member. -
-
Method Detail
-
zrangeCommand
final static RedisRequest zrangeCommand(String key, ZRange range, Boolean rev, ZRangeLimit limit, ElementSink<StreamWithLength> sink)
- Parameters:
range-the members to return, by rank, score or lex
rev-if true, the members are ordered from highest to lowest score and range must have the upper bound first
limit-optional, only supported for ranges by score or lex
sink-called once per member in the range (none if the key does not exist). The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.
-
zrangeWithScoresCommand
final static RedisRequest zrangeWithScoresCommand(String key, ZRange range, Boolean rev, ZRangeLimit limit, ScoredElementSink<StreamWithLength> sink)
Same as zrangeCommand, but with the score of each member.
-
-
-
-