Class ZScanCommandKt
-
- All Implemented Interfaces:
public final class ZScanCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestzscanCommand(String key, String cursor, StreamWithLength match, Long count, Function1<String, Unit> onCursor, ScoredElementSink<StreamWithLength> sink)-
-
Method Detail
-
zscanCommand
final static RedisRequest zscanCommand(String key, String cursor, StreamWithLength match, Long count, Function1<String, Unit> onCursor, ScoredElementSink<StreamWithLength> sink)
- Parameters:
cursor-"0" to start a new iteration, otherwise the cursor returned by the previous call
match-optional, only return members matching this glob-style pattern
count-optional, hint for how many members to return per call
onCursor-called with the cursor to use for the next call ("0" when the iteration is complete). Called before any member is passed to the sink.
sink-called once per returned member. The stream is read directly from the connection and is only valid until the callback returns, unread parts are skipped.
-
-
-
-