]> git.saurik.com Git - redis.git/blob - doc/MonitorCommand.html
added new HTML doc pages
[redis.git] / doc / MonitorCommand.html
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
32 Trying 127.0.0.1...
33 Connected to segnalo-local.com.
34 Escape character is '^]'.
35 MONITOR
36 +OK
37 monitor
38 keys *
39 dbsize
40 set x 6
41 foobar
42 get x
43 del x
44 get x
45 set key_x 5
46 hello
47 set key_y 5
48 hello
49 set key_z 5
50 hello
51 set foo_a 5
52 hello
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