When I EVAL the following LUA script from [node_redis][1], then the
result is incomplete.
return {{'a', 1}, {'b', 2}, {'c', 3}}
The result (JavaScript):
[['a', 1], ['b', 2], null]
If I make the LUA table longer, then simply more null values are added
in the result. The behavior is consistent with every run.
When I EVAL in `redis-cli` (Redis version 2.6.0-rc8), then things work
as expected:
redis
127.0.0.1:6379> eval "return {{'a', 1}, {'b', 2}, {'c', 3}}" 0
1) 1) "a"
2) (integer) 1
2) 1) "b"
2) (integer) 2
3) 1) "c"
2) (integer) 3
I didn't yet do any in depth debugging. But perhaps someone has an idea
what may be the issue?
[1]:
https://github.com/mranney/node_redis