From b011b6bc4ffee57766873e255c45752689234311 Mon Sep 17 00:00:00 2001 From: "zach.lee" Date: Fri, 30 Jun 2023 22:09:11 +0900 Subject: [PATCH] make EVALSHA and EVALSHA_RO to avoid command_keys as well --- redis/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/cluster.py b/redis/cluster.py index ef961dd91f..f19408ad8d 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -957,7 +957,7 @@ def determine_slot(self, *args): # redis server to parse the keys. Besides, there is a bug in redis<7.0 # where `self._get_command_keys()` fails anyway. So, we special case # EVAL/EVALSHA. - if command in ("EVAL", "EVALSHA"): + if command in ("EVAL", "EVALSHA", "EVAL_RO", "EVALSHA_RO"): # command syntax: EVAL "script body" num_keys ... if len(args) <= 2: raise RedisClusterException(f"Invalid args in command: {args}")