summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/zrangestore.md
blob: ba2b805ef3d4cc21824cd62b03ff42c21c2165f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
This command is like `ZRANGE`, but stores the result in the `<dst>` destination
key.

@return

@integer-reply: the number of elements in the resulting sorted set.

@examples

```cli
ZADD srczset 1 "one" 2 "two" 3 "three" 4 "four"
ZRANGESTORE dstzset srczset 2 -1
ZRANGE dstzset 0 -1
```