summaryrefslogtreecommitdiff
path: root/redis/commands
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-02-06 12:05:39 +0200
committerGitHub <noreply@github.com>2022-02-06 12:05:39 +0200
commitf9d8091bec3e83cbc0a699ac7b79894559ee0b3f (patch)
tree1d0d82570c1a8879c395996ac0743bc7d9cdea73 /redis/commands
parentd7dab861280ecd7dece8d96b3d05cea85d7abac2 (diff)
downloadredis-py-f9d8091bec3e83cbc0a699ac7b79894559ee0b3f.tar.gz
Throw NotImplementedError for FAILOVER (#1911)
* unsupported failover * add test and docstring * fix docstring
Diffstat (limited to 'redis/commands')
-rw-r--r--redis/commands/core.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py
index 99bf14d..139208e 100644
--- a/redis/commands/core.py
+++ b/redis/commands/core.py
@@ -1087,6 +1087,15 @@ class ManagementCommands:
"""
return self.execute_command("WAIT", num_replicas, timeout, **kwargs)
+ def failover(self):
+ """
+ This function throws a NotImplementedError since it is intentionally
+ not supported.
+ """
+ raise NotImplementedError(
+ "FAILOVER is intentionally not implemented in the client."
+ )
+
class BasicKeyCommands:
"""