summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-08-29 11:21:01 +0300
committerGitHub <noreply@github.com>2021-08-29 11:21:01 +0300
commit7c77883596e9e28c2d04298bf15ad9f947dd907f (patch)
tree1a9f6f8e5b0e07cf8856c337a6c16b0a00057b84 /redis/client.py
parent8cfea4137851fa49c7d211b782800dd696b67c39 (diff)
downloadredis-py-7c77883596e9e28c2d04298bf15ad9f947dd907f.tar.gz
Merged new sentinel commands from #834 (#1550)
* Merged new sentinel commands from #835 Thanks you @otherpirate for the contribution! * Added an execute wrapper and tests. The tests ensure that the function is called. Nothing more since we do not currently have enough testing support for sentinel
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index ab9246d..f6ca071 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -675,10 +675,14 @@ class Redis(Commands, object):
'SCRIPT FLUSH': bool_ok,
'SCRIPT KILL': bool_ok,
'SCRIPT LOAD': str_if_bytes,
+ 'SENTINEL CKQUORUM': bool_ok,
+ 'SENTINEL FAILOVER': bool_ok,
+ 'SENTINEL FLUSHCONFIG': bool_ok,
'SENTINEL GET-MASTER-ADDR-BY-NAME': parse_sentinel_get_master,
'SENTINEL MASTER': parse_sentinel_master,
'SENTINEL MASTERS': parse_sentinel_masters,
'SENTINEL MONITOR': bool_ok,
+ 'SENTINEL RESET': bool_ok,
'SENTINEL REMOVE': bool_ok,
'SENTINEL SENTINELS': parse_sentinel_slaves_and_sentinels,
'SENTINEL SET': bool_ok,