summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/zrem.md
blob: d97fd4ba94d9817043872bc7eb1f67a385b76bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Removes the specified members from the sorted set stored at `key`.
Non existing members are ignored.

An error is returned when `key` exists and does not hold a sorted set.

@return

@integer-reply, specifically:

* The number of members removed from the sorted set, not including non existing
  members.

@examples

```cli
ZADD myzset 1 "one"
ZADD myzset 2 "two"
ZADD myzset 3 "three"
ZREM myzset "two"
ZRANGE myzset 0 -1 WITHSCORES
```