Arguments
str
required
The key of the sorted set
str | float
required
The minimum rank to remove.
str | float
required
The maximum rank to remove.
Response
The number of elements removed from the sorted set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
redis.zremrangebyrank("key", 4, 20)
Remove all members in a sorted set between the given ranks.
redis.zremrangebyrank("key", 4, 20)
Was this page helpful?