ZREMRANGEBYSCORE

Removes sorted-set members within a score range.

Sorted sets · Example verified

Syntax covered here

ZREMRANGEBYSCORE key min max

Equal numeric bounds select the member at that exact score in the case.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> ZADD scores 1 a 2 b
2
# connection: default
> ZREMRANGEBYSCORE scores 1 1
1