Skip to content

Instantly share code, notes, and snippets.

@badboy
Created November 29, 2014 17:44
Show Gist options
  • Save badboy/776dd3704a73a4ac338c to your computer and use it in GitHub Desktop.
Save badboy/776dd3704a73a4ac338c to your computer and use it in GitHub Desktop.
> r = redis.createClient()
> r.del("foo")
true
> r.hmset("foo", { a: "b", c: "d", e: "f" })
true
> r.hgetall("foo", function(e,v) { console.log(v) })
true
> { a: 'b', c: 'd', e: 'f' }
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment