sscan.3valkey - Man Page
Iterates over members of a set.
Synopsis
SSCAN
key cursor [MATCH
pattern] [COUNT
count]
See SCAN
for SSCAN
documentation.
Reply
valkey-protocol(7) Array reply: specifically, an array with two elements:
- The first element is a valkey-protocol(7) Bulk string reply that represents an unsigned 64-bit number, the cursor.
- The second element is an valkey-protocol(7) Array reply with the names of scanned members.
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 @set @slow
History
- Available since: 2.8.0
See Also
sadd(3valkey), scard(3valkey), sdiff(3valkey), sdiffstore(3valkey), sinter(3valkey), sintercard(3valkey), sinterstore(3valkey), sismember(3valkey), smembers(3valkey), smismember(3valkey), smove(3valkey), spop(3valkey), srandmember(3valkey), srem(3valkey), sunion(3valkey), sunionstore(3valkey)
Info
2024-09-23 8.0.0 Valkey Command Manual