ZSCAN
- Usage:
-
ZSCAN key cursor [ MATCH pattern ] [ COUNT count ] [ NOSCORES ]
- 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.
- Since:
- 2.8.0
- ACL Categories:
- @read, @slow, @sortedset
See SCAN for ZSCAN documentation.
Reply
Two-element array.
- The first element is a string that represents an unsigned 64-bit number, the cursor.
- The second element is an array of member/score pairs that were scanned. When
NOSCORESoption is on, a list of members from the sorted set.
History
| Version | Change |
|---|---|
| 8.0.0 | Added noscores option. |