From 022a3e8314daa59b31fdce1d32e0e74d77f564cc Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 14 Dec 2022 14:04:57 +0200 Subject: Raising NotImplementedError for certain CLUSTER commands (#2504) Co-authored-by: Chayim --- redis/commands/cluster.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'redis/commands/cluster.py') 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. -- cgit v1.2.1