Skip to main content

SCAN

Scan the database for keys.
1 min read

Arguments#

cursorintrequired#

The cursor, use 0 in the beginning and then use the returned cursor for subsequent calls.

matchstrrequired#

Glob-style pattern to filter by field names.

countintrequired#

Number of fields to return per call.

typestr#

Filter by type. For example string, hash, set, zset, list, stream.

Response#

Tuple[int, List[str]]required

The new cursor and the keys as a tuple. If the new cursor is 0 the iteration is complete.

Use the new cursor for subsequent calls.

Was this page helpful?