summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/zrangestore.md
blob: 8dc744c3e3b3d19eec4cf9d99b6b31f1f47f52e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
```