ZRANK
Return a member's rank, ordered from the lowest score.
ZRANK key member
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