Iterates over members of a set.
SSCAN
key cursor
[MATCH
pattern]
[COUNT
count]
See SCAN
for SSCAN
documentation.
Array reply: specifically, an array with two elements:
The first element is a Bulk string reply that represents an unsigned 64-bit number, the cursor.
The second element is an Array reply with the names of scanned members.
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 @set @slow
SADD, SCARD, SDIFF, SDIFFSTORE, SINTER, SINTERCARD, SINTERSTORE, SISMEMBER, SMEMBERS, SMISMEMBER, SMOVE, SPOP, SRANDMEMBER, SREM, SUNION, SUNIONSTORE.