Many redis commands return `(error) result.each is not a function`
stockholmux opened this issue · comments
Many commands that return Redis Arrays return (error) result.each is not a function
. Examples:
127.0.0.1:6379> LPUSH alist 1 2 3
3
127.0.0.1:6379> LRANGE alist 0 -1
(error) result.each is not a function
LRANGE
should be (example from true redis-cli):
127.0.0.1:6379> LRANGE alist 0 -1
1) "3"
2) "2"
3) "1"
Similarly:
127.0.0.1:6379> ZADD azset 1 a 2 b
2
127.0.0.1:6379> ZRANGE azset 0 1000
(error) result.each is not a function
Should be:
127.0.0.1:6379> zrange azset 0 1000
1) "a"
2) "b"
fixed