ZRANGESTORE
Since 1.1.0Sorted sets
Syntax
ZRANGESTORE dst src min max [BYSCORE|BYLEX] [REV] [LIMIT offset count]Stores the members ZRANGE would return, with their scores, at dst, replacing whatever was there. It takes the same BYSCORE, BYLEX, REV and LIMIT options.
Reply
- The number of members stored.
Examples
> ZADD r 1 a 2 b 3 c 4 d
(integer) 4
> ZRANGESTORE dst r 0 2
(integer) 3
> ZRANGE dst 0 -1
1) "a"
2) "b"
3) "c"