Skip to content
masterclass Buddy

Redis · Command

ZRANGEBYSCORE

Returns members from a sorted set whose scores are within a chosen range. Use WITHSCORES for scores and LIMIT for paging; for new code, use ZRANGE with BYSCORE because this command is deprecated since Redis 6.2.0.

Last updated

Since
1.0.5

Syntax

ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]

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

Subscribe
  • ZRANGE
  • ZADD
  • ZCOUNT
  • ZREVRANGEBYSCORE
  • ZREMRANGEBYSCORE
  • ZRANGEBYLEX

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