Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var client = require("redis").createClient(),
- util = require("util");
- client.set("some key", "A value with Unicode: ☕");
- client.get("some key", function (err, reply) {
- // a wise user also checks for errors
- console.log("Reply: " + reply);
- });
- client.hmset("hash key", "prop1", "val1", "prop2", "val2");
- client.hgetall("hash key", function (err, res) {
- console.log("Val: " + util.inspect(res));
- client.quit();
- });
Add Comment
Please, Sign In to add comment