ZSCAN · Valkey

ZSCAN

Iterates over members and scores of a sorted set.

Usage

ZSCAN key cursor [MATCH pattern] [COUNT count] [NOSCORES]

See SCAN for ZSCAN documentation.

Reply

Array reply: a two-element array.

Complexity

O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.

ACL Categories

@read @slow @sortedset

History

See also

BZMPOP, BZPOPMAX, BZPOPMIN, ZADD, ZCARD, ZCOUNT, ZDIFF, ZDIFFSTORE, ZINCRBY, ZINTER, ZINTERCARD, ZINTERSTORE, ZLEXCOUNT, ZMPOP, ZMSCORE, ZPOPMAX, ZPOPMIN, ZRANDMEMBER, ZRANGE, ZRANGESTORE, ZRANK, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANK, ZSCORE, ZUNION, ZUNIONSTORE.