summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 8726d39..01551fa 100644
--- a/README.rst
+++ b/README.rst
@@ -675,6 +675,18 @@ supported:
>>> r.pubsub_numpat()
1204
+Monitor
+^^^^^^^
+redis-py includes a `Monitor` object that that streams back every command
+processed by the Redis server. Use `listen` on the `Monitor` object to block
+until message available.
+
+.. code-block:: pycon
+
+ >>> r = redis.StrictRedis(...)
+ >>> with sr.monitor() as m:
+ >>> for command in m.listen():
+ >>> print(command)
Lua Scripting
^^^^^^^^^^^^^