Skip to content

hmget fails when args.length > 1 #66

Closed

Description

@aeosynth
var redis = require('redis')
  , client = redis.createClient();

client.hset('hash', 'key', 'val');

client.hmget('hash', ['key'], redis.print);
client.hmget('hash', 'key', 'key', redis.print);
client.hmget('hash', ['key', 'key'], redis.print);

client.quit();

/* output:
Reply: val
Reply: val,val
Reply: 
*/

Activity

  1. zxcabs commented on Mar 15, 2011

    @zxcabs

    Hi!
    You can do it like that:

    client.hmget(['hash','key', 'key'], redis.print);

    Reply: val,val

  2. added a commit that references this issue on Apr 22, 2011
  3. mranney commented on Apr 22, 2011

    @mranney
    Contributor

    Thanks, this was a tricky one that I had always assumed was working. I've fixed and updated the tests to include this pattern.

    Fixed in v0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions