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

hgetall with multi doesn't return hash object but array instead #158

Closed
morfies opened this issue Sep 25, 2015 · 1 comment
Closed

hgetall with multi doesn't return hash object but array instead #158

morfies opened this issue Sep 25, 2015 · 1 comment
Milestone

Comments

@morfies
Copy link

morfies commented Sep 25, 2015

Hi,
if I use only :
redis.hgetall("my key", function(err, obj){
//here obj is a js Object with key:value pairs. eg. {a:"1", b:"2"}
})
but when I use hgetall with multi:
var multi = redis.multi();
...
multi.hgetall("my key"); //may be in a loop
...
multi.exec(function(err, replies){
//results in replies are not hash Objects but arrays instead. eg: ["a", "1", "b", "2"]
});

Can you tell me if this is a problem or just a design so.
Thanks

@luin
Copy link
Collaborator

luin commented Sep 25, 2015

Command replies transforming is not supported in transaction (multi) currently. Since this feature breaks backwards compatibility, it will be implemented in 2.0.0

@luin luin added this to the 2.0.0 milestone Sep 25, 2015
luin added a commit that referenced this issue Mar 13, 2016
BREAKING CHANGE:

  1. Reply transformers is supported inside transactions.
  2. `Pipeline#execBuffer()` is deprecated. Use `Pipeline#exec()` instead.

Closes #158.
@luin luin closed this as completed in e0b1883 Mar 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants