]> git.saurik.com Git - redis.git/blame - doc/MonitorCommand.html
CLUSTER SETSLOT STABLE fixed
[redis.git] / doc / MonitorCommand.html
CommitLineData
8fb13ce8 1
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
3<html>
4 <head>
5 <link type="text/css" rel="stylesheet" href="style.css" />
6 </head>
7 <body>
8 <div id="page">
9
10 <div id='header'>
11 <a href="index.html">
12 <img style="border:none" alt="Redis Documentation" src="redis.png">
13 </a>
14 </div>
15
16 <div id="pagecontent">
17 <div class="index">
18<!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19<b>MonitorCommand: Contents</b><br>&nbsp;&nbsp;<a href="#MONITOR">MONITOR</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Return value">Return value</a>
20 </div>
21
22 <h1 class="wikiname">MonitorCommand</h1>
23
24 <div class="summary">
25
26 </div>
27
28 <div class="narrow">
29 &iuml;&raquo;&iquest;#sidebar <a href="ControlCommandsSidebar.html">ControlCommandsSidebar</a><h1><a name="MONITOR">MONITOR</a></h1><blockquote>MONITOR is a debugging command that outputs the whole sequence of commandsreceived by the Redis server. is very handy in order to understandwhat is happening into the database. This command is used directlyvia telnet.</blockquote>
30<pre class="codeblock python" name="code">
31% telnet 127.0.0.1 6379
32Trying 127.0.0.1...
33Connected to segnalo-local.com.
34Escape character is '^]'.
35MONITOR
36+OK
37monitor
38keys *
39dbsize
40set x 6
41foobar
42get x
43del x
44get x
45set key_x 5
46hello
47set key_y 5
48hello
49set key_z 5
50hello
51set foo_a 5
52hello
53</pre><blockquote>The ability to see all the requests processed by the server is useful in orderto spot bugs in the application both when using Redis as a database and asa distributed caching system.</blockquote>
54<blockquote>In order to end a monitoring session just issue a QUIT command by hand.</blockquote>
55<h2><a name="Return value">Return value</a></h2><b>Non standard return value</b>, just dumps the received commands in an infinite flow.
56
57 </div>
58
59 </div>
60 </div>
61 </body>
62</html>
63