mranney/node_redis — pull request #634 by srinivasiyer (2014-07-27 16:20:27+00:00)
Title: Sending Arrays in Redis Multi Commands

While chaining multiple commands to client.multi(), the commands only accepted comma separated arguments directly. I made a small change in the index file that allows params to be passed in arrays. The command was earlier being sent to the queue as a multi dimensional array which made the command fail.

Therefore earlier, only client.multi().zadd('foobar', 1, 'foo', 2, 'bar' ) was getting accepted.
With the new change, the command can be sent as
client.multi().zadd(['foobar', 1, 'foo', 2, 'bar']) or
client.multi().zadd('foobar',[ 1, 'foo', 2, 'bar'])
and it would work correctly. It would be a very useful fields for commands where multiple arguments need to be passed. I personally thought it was possible until the code returned with nothing.

Hope we can consider this change. I have also written a test MULTI_9 which passed.