blob: 3665bd0f1fec738351159aeb6fdd820a04467a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Removes all elements in the sorted set stored at `key` with a score between
`min` and `max` (inclusive).
Since version 2.1.6, `min` and `max` can be exclusive, following the syntax of
`ZRANGEBYSCORE`.
@return
@integer-reply: the number of elements removed.
@examples
```cli
ZADD myzset 1 "one"
ZADD myzset 2 "two"
ZADD myzset 3 "three"
ZREMRANGEBYSCORE myzset -inf (2
ZRANGE myzset 0 -1 WITHSCORES
```
|