Class ScanCommandKt
-
- All Implemented Interfaces:
public final class ScanCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestscanCommand(String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)-
-
Method Detail
-
scanCommand
final static RedisRequest scanCommand(String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)
- Parameters:
cursor-"0" to start a new iteration, otherwise the cursor returned by the previous call
match-optional, only return key names matching this glob-style pattern
count-optional, hint for how many keys to return per call
type-optional, only return keys of this type (as returned by typeCommand, e.g. "string" or "hash")
onCursor-called with the cursor to use for the next call ("0" when the iteration is complete). Called before any key name is passed to the sink.
sink-called once per returned key name
-
-
-
-