title: Why doesn't redis SADD work with an array as an input in node.js?
body: <p>I am using <a href="https://github.com/mranney/node_redis" rel="nofollow">https://github.com/mranney/node_redis</a> and trying to update a set with multiple values at once (on redis cli <code>"SADD myset val1 val2"</code> works fine).</p>
  
  <p>The exact command I am using is:</p>
  
  <pre><code>var cmd_array = ['myset', 'val1', 'val2'];
  client.sadd(cmd_array);
  </code></pre>
  
  <p>Based on their documentation this should of worked. Any idea why it doesn't?</p>
  
  <p>Thanks</p>