ZRANGESTORE dst src min max [BYSCORE|BYLEX] [REV] [LIMIT offset count]

This command is like ZRANGE, but stores the result in the <dst> destination key.

*Return value

Integer reply: the number of elements in the resulting sorted set.


redis>  ZADD srczset 1 "one" 2 "two" 3 "three" 4 "four"
(integer) 4
redis>  ZRANGESTORE dstzset srczset 2 -1
ERR Unknown or disabled command 'ZRANGESTORE'
redis>  ZRANGE dstzset 0 -1
(empty list or set)