Skip to main content

ZSCAN

Scan a sorted set
1 min read

Arguments#

keystringrequired#

The key of the sorted set.

cursornumber#

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

optionsObject#
matchstring#

Glob-style pattern to filter by members.

countnumber#

Number of members to return per call.

Response#

[number, TMember[]]required

The new cursor and the members. If the new cursor is 0 the iteration is complete.

Was this page helpful?