summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-12-14 14:04:57 +0200
committerGitHub <noreply@github.com>2022-12-14 14:04:57 +0200
commit022a3e8314daa59b31fdce1d32e0e74d77f564cc (patch)
tree916dbd24def3eeab8f62626956d449045c21592c /redis
parentb556440949799dca2110cd3a17738dc6a5e1516a (diff)
downloadredis-py-022a3e8314daa59b31fdce1d32e0e74d77f564cc.tar.gz
Raising NotImplementedError for certain CLUSTER commands (#2504)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'redis')
-rw-r--r--redis/commands/cluster.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py
index f0eaaf7..f434f36 100644
--- a/redis/commands/cluster.py
+++ b/redis/commands/cluster.py
@@ -644,6 +644,16 @@ class ClusterManagementCommands(ManagementCommands):
"""
return self.execute_command("CLUSTER LINKS", target_nodes=target_node)
+ def cluster_flushslots(self, target_nodes: Optional["TargetNodesT"] = None) -> None:
+ raise NotImplementedError(
+ "CLUSTER FLUSHSLOTS is intentionally not implemented in the client."
+ )
+
+ def cluster_bumpepoch(self, target_nodes: Optional["TargetNodesT"] = None) -> None:
+ raise NotImplementedError(
+ "CLUSTER BUMPEPOCH is intentionally not implemented in the client."
+ )
+
def readonly(self, target_nodes: Optional["TargetNodesT"] = None) -> ResponseT:
"""
Enables read queries.