kevy4.0

ZRANGE

Return members by rank range.

ZRANGE key start stop [WITHSCORES]
Group
Sorted set
Since
1.0.0
Arity
at least 4
Flags
readonly

Complexity

O(start + M) — the tree iterator advances one node at a time; there is no rank index to jump with

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

Redis compatibility

Differs

only the legacy 'key start stop [WITHSCORES]' form is accepted — the Redis 6.2 BYSCORE / BYLEX / REV / LIMIT arguments are a syntax error

See also

BZPOPMINZADDZCARDZCOUNTZDIFFSTOREZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEBYSCOREZRANKZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCANZSCOREZUNIONSTORE

← All commands