Skip to content
masterclass Buddy

Redis · Command

ZRANK

Returns a member's zero-based rank in a sorted set, ordered by ascending score. WITHSCORE also returns that member's score.

Last updated

Since
2.0.0

Syntax

ZRANK key member [WITHSCORE]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ZREVRANK
  • ZADD
  • ZSCORE
  • ZRANGE

Source: ZRANK | Docs. Checked 2026-11-03.