Skip to content

hmset {} #92

Closed
Closed

Description

@dvv

Hi!

hmset 'foo', {} bails with invalid number of args to hmset. Could it instead just skip or simply call callback?

TIA,
--Vladimir

Activity

  1. dvv commented on Apr 21, 2011

    @dvv
    ContributorAuthor

    update: a quirky inconsistency

    db.multi().hmset('key', {foo: 'bar'}) works

    db.multi(['hmset', 'key', {foo: 'bar'}]) errors -- it doesn't pre-convert hash to set of arguments

  2. dvv commented on Apr 21, 2011

    @dvv
    ContributorAuthor

    The fix: https://gist.github.com/934487

    Please, consider applying

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

    @mranney
    Contributor

    I applied this in v0.6.0. Can you please try it out and confirm that it works for you?

    Thanks for the report and the fix.

  5. dvv commented on Apr 22, 2011

    @dvv
    ContributorAuthor

    AFAICS all's well. Except probably https://gist.github.com/934487#file_gistfile1.txt -- this would ease dramatically to setup multi calls in pure-arrays-manner.

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