kevy4.0

ZRANK

Return a member's rank, ordered from the lowest score.

ZRANK key member
Group
Sorted set
Since
1.0.0
Arity
exactly 3
Flags
readonly

Complexity

O(N) — a linear position scan. NOT O(log N): our zset has no rank-augmented structure

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

Redis compatibility

Differs

the Redis 7.2 WITHSCORE option is not supported

See also

BZPOPMINZADDZCARDZCOUNTZDIFFSTOREZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEZRANGEBYSCOREZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCANZSCOREZUNIONSTORE

← All commands