Skip to content

Instantly share code, notes, and snippets.

@horatio-sans-serif
Created August 19, 2010 19:33
Show Gist options
  • Save horatio-sans-serif/538687 to your computer and use it in GitHub Desktop.
Save horatio-sans-serif/538687 to your computer and use it in GitHub Desktop.
function testHGETALL() {
client.hset("foo", "bar", "baz", expectNumber(1, "testHGETALL"));
client.hset("foo", "quux", "doo", expectNumber(1, "testHGETALL"));
client.hgetall("foo", function (err, all) {
if (err) assert.fail(err, "testHGETALL");
redisclient.convertMultiBulkBuffersToUTF8Strings(all);
checkDeepEqual(all, { bar:"baz", quux:"doo" }, "testHGETALL");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment