metamaps--metamaps/realtime/node_modules/redis/examples/monitor.js

11 lines
267 B
JavaScript
Raw Normal View History

var client = require("../index").createClient(),
util = require("util");
client.monitor(function (err, res) {
console.log("Entering monitoring mode.");
});
client.on("monitor", function (time, args) {
console.log(time + ": " + util.inspect(args));
});