mranney/node_redis — Issue #161: Allow integer keys for hmset
Author: jacobrask
Created: 2011-12-20 22:46:47+00:00
State: open

All commands except `hmset` seem to accept integers as keys.

r = require('redis').createClient();
r.set(1, 'foo'); // OK
r.set("2", 'foo'); // OK
r.hmset("3", { foo: 'bar' }); // OK
r.hmset(4, { foo: 'bar' }); // ERR wrong number of arguments for 'hmset' command