Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sadd( array[] ) #123

Closed
net-me opened this issue Jul 29, 2011 · 2 comments
Closed

sadd( array[] ) #123

net-me opened this issue Jul 29, 2011 · 2 comments
Labels

Comments

@net-me
Copy link

net-me commented Jul 29, 2011

this.client.sadd('key', ['a','b'])
redis> SMEMBERS key

  1. "a,b"
    nor
  2. "a"
  3. "b"

??

@net-me
Copy link
Author

net-me commented Jul 29, 2011

node_redis v 0.6.6 (from npm)
redis v 2.2.6

mranney added a commit that referenced this issue Jul 31, 2011
Passing an Array as as the last argument should expand as users
expect.  The old behavior was to coerce the arguments into Strings,
which did surprising things with Arrays.
@mranney
Copy link
Contributor

mranney commented Jul 31, 2011

Yeah, that is quite surprising behavior. Thanks for pointing it out.

It should be fixed in the version I just pushed. Let me know how it works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants