Skip to main content

ZSCAN

Scan a sorted set
1 min read

Return a paginated list of members and their scores of an ordered set matching a pattern.

Arguments#

keystrrequired#

The key of the sorted set.

cursorintrequired#

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

matchstr#

Glob-style pattern to filter by members.

countint#

Number of members to return per call.

Response#

Tuple[int, List[str]]required

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

Was this page helpful?