Skip to content
masterclass Buddy

Redis · Command

ZCOUNT

ZCOUNT counts members in a sorted set whose scores are within a given range. The range can include or exclude either endpoint.

Last updated

Since
2.0.0

Syntax

ZCOUNT key min max

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

Subscribe
  • ZADD
  • ZCARD
  • ZRANGEBYSCORE
  • ZRANK
  • ZLEXCOUNT
  • ZREMRANGEBYSCORE

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