Skip to main content

ZREMRANGEBYSCORE

Note

Official reference: ZREMRANGEBYSCORE.

Remove members in a score range.

Syntax​

ZREMRANGEBYSCORE key min max

Numeric bounds are inclusive; (10 excludes 10. -inf/+inf mean no lower/upper bound.

Results​

ReturnRowsContent
Update count--Number of members removed from the sorted set, not including non-existing members.

Example​

ZADD demo:ranking 10 alice 20 bob
ZREMRANGEBYSCORE demo:ranking 0 10