as in redis.mget([ ], mycallback).
I get the error: "Error: ERR wrong number of arguments for 'mget' command"
Here is an example of mget, does this solve the issue?
client.mget(["sessions started", "sessions started", "foo"], function (err, res) {
console.dir(res);
});
I'm getting the same error as OP (wrong number of args...
) for mget([ ])
; how was this resolved?
Having zero-length input array is no special case IMO, it makes client code logic unnecessarily ugly.
Using redis-2.4.17 + node-redis v0.8.1.
@piskvorky What kind of behaviour are you expecting when calling mget([])
?
I expect mget(keys)
to behave like map(keys, get)
conceptually ([]
=> []
).
Most helpful comment
I expect
mget(keys)
to behave likemap(keys, get)
conceptually ([]
=>[]
).