Skip to content
masterclass Buddy

Upstash · Method

redis.zrank

ZRANK returns a member's zero-based position in a sorted set, ordered by increasing score. Equal scores use lexicographic member order; WITHSCORE also returns the score.

Last updated

Syntax

ZRANK key member [WITHSCORE]

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

Subscribe
  • ZADD
  • ZINCRBY
  • ZREVRANK
  • ZRANGE
  • ZSCORE

Source: ZRANK - Upstash Documentation. Checked 2026-11-03.