summaryrefslogtreecommitdiff
path: root/redis/commands/cluster.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/cluster.py')
-rw-r--r--redis/commands/cluster.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py
index 3d42317..4182726 100644
--- a/redis/commands/cluster.py
+++ b/redis/commands/cluster.py
@@ -287,6 +287,17 @@ class RedisClusterCommands(
"""
return [self.execute_command("CLUSTER DELSLOTS", slot) for slot in slots]
+ def cluster_delslotsrange(self, *slots):
+ """
+ Similar to the CLUSTER DELSLOTS command.
+ The difference is that CLUSTER DELSLOTS takes a list of hash slots to remove
+ from the node, while CLUSTER DELSLOTSRANGE takes a list of slot ranges to remove
+ from the node.
+
+ For more information check https://redis.io/commands/cluster-delslotsrange
+ """
+ return self.execute_command("CLUSTER DELSLOTSRANGE", *slots)
+
def cluster_failover(self, target_node, option=None):
"""
Forces a slave to perform a manual failover of its master