2 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
5 <link type=
"text/css" rel=
"stylesheet" href=
"style.css" />
12 <img style=
"border:none" alt=
"Redis Documentation" src=
"redis.png">
16 <div id=
"pagecontent">
18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19 <b>InfoCommand: Contents
</b><br> <a href=
"#INFO">INFO
</a><br> <a href=
"#Return value">Return value
</a><br> <a href=
"#Notes">Notes
</a><br> <a href=
"#See also">See also
</a>
22 <h1 class=
"wikiname">InfoCommand
</h1>
29 <h1><a name=
"INFO">INFO
</a></h1><blockquote>The info command returns different information and statistics about the server in an format that's simple to parse by computers and easy to red by huamns.
</blockquote>
30 <h2><a name=
"Return value">Return value
</a></h2><a href=
"ReplyTypes.html">Bulk reply
</a>, specifically in the following format:
<br/><br/><pre class=
"codeblock python" name=
"code">
35 changes_since_last_save:
0
36 last_save_time:
1237655729
37 total_connections_received:
1
38 total_commands_processed:
1
41 </pre>All the fields are in the form
<code name=
"code" class=
"python">field:value
</code><h2><a name=
"Notes">Notes
</a></h2><ul><li> <code name=
"code" class=
"python">used_memory
</code> is returned in bytes, and is the total number of bytes allocated by the program using
<code name=
"code" class=
"python">malloc
</code>.
</li><li> <code name=
"code" class=
"python">uptime_in_days
</code> is redundant since the uptime in seconds contains already the full uptime information, this field is only mainly present for humans.
</li><li> <code name=
"code" class=
"python">changes_since_last_save
</code> does not refer to the number of key changes, but to the number of operations that produced some kind of change in the dataset.
</li></ul>
42 <h2><a name=
"See also">See also
</a></h2>
43 <ul><li> <a href=
"LastsaveCommand.html">LASTSAVE
</a></li><li> <a href=
"DbsizeCommand.html">DBSIZE
</a></li></ul>