summaryrefslogtreecommitdiff
path: root/docs/sentinel_commands.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sentinel_commands.rst')
-rw-r--r--docs/sentinel_commands.rst20
1 files changed, 0 insertions, 20 deletions
diff --git a/docs/sentinel_commands.rst b/docs/sentinel_commands.rst
deleted file mode 100644
index e5be11e..0000000
--- a/docs/sentinel_commands.rst
+++ /dev/null
@@ -1,20 +0,0 @@
-Redis Sentinel Commands
-=======================
-
-redis-py can be used together with `Redis
-Sentinel <https://redis.io/topics/sentinel>`_ to discover Redis nodes. You
-need to have at least one Sentinel daemon running in order to use
-redis-py's Sentinel support.
-
-Connection example (assumes redis redis on the ports listed below):
-
- >>> from redis import Sentinel
- >>> sentinel = Sentinel([('localhost', 26379)], socket_timeout=0.1)
- >>> sentinel.discover_master('mymaster')
- ('127.0.0.1', 6379)
- >>> sentinel.discover_slaves('mymaster')
- [('127.0.0.1', 6380)]
-
-
-.. autoclass:: redis.commands.sentinel.SentinelCommands
- :members: \ No newline at end of file