SSCAN · Valkey

SSCAN

Iterates over members of a set.

Usage

SSCAN key cursor [MATCH pattern] [COUNT count]

See SCAN for SSCAN documentation.

Reply

Array reply: specifically, an array with two elements:

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

See also

SADD, SCARD, SDIFF, SDIFFSTORE, SINTER, SINTERCARD, SINTERSTORE, SISMEMBER, SMEMBERS, SMISMEMBER, SMOVE, SPOP, SRANDMEMBER, SREM, SUNION, SUNIONSTORE.