ZREMRANGEBYRANK
Since 1.1.0Sorted sets
Syntax
ZREMRANGEBYRANK key start stopRemoves the members of the sorted set at key with ranks from start to stop, both included. Negative ranks count from the end.
Reply
- The number of members removed.
Examples
> ZADD rm 1 a 2 b 3 c
(integer) 3
> ZREMRANGEBYRANK rm 0 1
(integer) 2