Class ScanKt
-
- All Implemented Interfaces:
public final class ScanKt
-
-
Method Summary
Modifier and Type Method Description final static ScanResult<String>scan(RedisConnection $self, String cursor, String match, Long count, String type)final static ScanResult<String>scan(RedisConnectionPool $self, String cursor, String match, Long count, String type)final static Unitscan(RedisPipelineBuilder $self, String cursor, String match, Long count, String type, Function1<ScanResult<String>, Unit> onResult)final static UnitscanStreaming(RedisConnection $self, String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)final static UnitscanStreaming(RedisPipelineBuilder $self, String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)-
-
Method Detail
-
scan
final static ScanResult<String> scan(RedisConnection $self, String cursor, String match, Long count, String type)
-
scan
final static ScanResult<String> scan(RedisConnectionPool $self, String cursor, String match, Long count, String type)
-
scan
final static Unit scan(RedisPipelineBuilder $self, String cursor, String match, Long count, String type, Function1<ScanResult<String>, Unit> onResult)
- Parameters:
cursor-"0" to start a new iteration, otherwise ScanResult.cursor of 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 TYPE, e.g. "string" or "hash")
onResult-called with the next cursor and the key names of this page. A key may be returned more than once during a full iteration.
-
scanStreaming
final static Unit scanStreaming(RedisConnection $self, String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)
-
scanStreaming
final static Unit scanStreaming(RedisPipelineBuilder $self, String cursor, String match, Long count, String type, Function1<String, Unit> onCursor, ElementSink<String> sink)
-
-
-
-