kevy4.0

SSCAN

Iterate a set's members (single-batch cursor).

SSCAN key cursor [MATCH pattern] [COUNT count]
Group
Set
Since
1.0.0
Arity
at least 3
Flags
readonly

Complexity

O(N) — the whole set is copied and returned in one batch

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

not a cursor iterator — the cursor is always 0 and the entire set comes back in one reply; COUNT is validated then ignored

See also

SADDSCARDSDIFFSDIFFSTORESINTERSINTERSTORESISMEMBERSMEMBERSSPOPSRANDMEMBERSREMSUNIONSUNIONSTORE

← All commands