Iterates over members and scores of a sorted set.
ZSCAN key cursor
[MATCH pattern]
[COUNT count]
[NOSCORES]
See SCAN for ZSCAN documentation.
Array reply: a two-element array.
The first element is a Bulk string reply that represents an unsigned 64-bit number, the cursor.
The second element is an Array reply of member/score
pairs that were scanned. When NOSCORES option is on, a list
of members from the sorted set.
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.
@read @slow @sortedset
BZMPOP, BZPOPMAX, BZPOPMIN, ZADD, ZCARD, ZCOUNT, ZDIFF, ZDIFFSTORE, ZINCRBY, ZINTER, ZINTERCARD, ZINTERSTORE, ZLEXCOUNT, ZMPOP, ZMSCORE, ZPOPMAX, ZPOPMIN, ZRANDMEMBER, ZRANGE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANGESTORE, ZRANK, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANGE, ZREVRANGEBYLEX, ZREVRANGEBYSCORE, ZREVRANK, ZSCORE, ZUNION, ZUNIONSTORE.