Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add monitor example.

  • Loading branch information...
commit 850d12962981ee5cc2662f7ce4c8eade3878e1be 1 parent 2fcc947
@mranney mranney authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 examples/monitor.js
View
10 examples/monitor.js
@@ -0,0 +1,10 @@
+var client = require("redis").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));
+});
Please sign in to comment.
Something went wrong with that request. Please try again.