kevy4.0

ZSCAN

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

ZSCAN key cursor [MATCH pattern] [COUNT count]
Group
Sorted set
Since
1.0.0
Arity
at least 3
Flags
readonly

Complexity

O(N) — the whole set is materialised

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 — every call returns the whole set with cursor 0, and COUNT is parsed then ignored

See also

BZPOPMINZADDZCARDZCOUNTZDIFFSTOREZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEZRANGEBYSCOREZRANKZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCOREZUNIONSTORE

← All commands