Files
redis-docs/docs/InfoCommand.rst
T
Kenneth Reitz 525e9fd3d3 all into sphinx
2011-04-06 13:27:48 -04:00

49 lines
1.3 KiB
ReStructuredText
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
`|Redis Documentation| <index.html>`_
**InfoCommand: Contents**
  `INFO <#INFO>`_
    `Return value <#Return%20value>`_
    `Notes <#Notes>`_
InfoCommand
===========
#sidebar `ControlCommandsSidebar <ControlCommandsSidebar.html>`_
INFO
====
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.
Return value
------------
`Bulk reply <ReplyTypes.html>`_, specifically in the following
format:
::
edis_version:0.07
connected_clients:1
connected_slaves:0
used_memory:3187
changes_since_last_save:0
last_save_time:1237655729
total_connections_received:1
total_commands_processed:1
uptime_in_seconds:25
uptime_in_days:0
All the fields are in the form ``field:value``
Notes
-----
- ``used_memory`` is returned in bytes, and is the total number of
bytes allocated by the program using ``malloc``.
- ``uptime_in_days`` is redundant since the uptime in seconds
contains already the full uptime information, this field is only
mainly present for humans.
- ``changes_since_last_save`` does not refer to the number of key
changes, but to the number of operations that produced some kind of
change in the dataset.
.. |Redis Documentation| image:: redis.png