I am using https://github.com/mranney/node_redis and trying to update a set with multiple values at once (on redis cli "SADD myset val1 val2" works fine).
The exact command I am using is:
var cmd_array = ['myset', 'val1', 'val2'];
client.sadd(cmd_array);
Based on their documentation this should of worked. Any idea why it doesn’t?
Thanks
It works fine for me.
I can run the following script without any issue:
It creates the two keys with the expected number of items:
I would suggest you check the node_redis version.
The version I use is: