1 var redis = require("redis"),
2 client = redis.createClient("/tmp/redis.sock"),
3 profiler = require("v8-profiler");
5 client.on("connect", function () {
6 console.log("Got Unix socket connection.")
9 client.on("error", function (err) {
10 console.log(err.message);
13 client.set("space chars", "space value");
15 setInterval(function () {
16 client.get("space chars");
20 client.info(function (err, reply) {
21 console.log(reply.toString());
26 setTimeout(function () {
27 console.log("Taking snapshot.");
28 var snap = profiler.takeSnapshot();