summaryrefslogtreecommitdiff
path: root/redis/commands/cluster.py
diff options
context:
space:
mode:
authorDongkeun Lee <3315213+zakaf@users.noreply.github.com>2022-12-25 23:18:24 +0900
committerGitHub <noreply@github.com>2022-12-25 16:18:24 +0200
commitd693221e9ac4bdf09cf3538ea38e7d7d2799059b (patch)
tree2d9f01b24bb54b46486058a932973bbabcfc9005 /redis/commands/cluster.py
parent55298e49caa5d76a7371568d2773e8e245b388a1 (diff)
downloadredis-py-d693221e9ac4bdf09cf3538ea38e7d7d2799059b.tar.gz
Allow EVAL_RO and EVALSHA_RO to be routed to read replica (#2494)
* fix typo (Lue -> Lua) * run eval_ro, evalsha_ro test on redis cluster * Add eval_ro, evalsha_ro to read only commands * assert that commands are run in a round robin manner Co-authored-by: zach.lee <zach.lee@sendbird.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
Diffstat (limited to 'redis/commands/cluster.py')
-rw-r--r--redis/commands/cluster.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py
index f434f36..a23a94a 100644
--- a/redis/commands/cluster.py
+++ b/redis/commands/cluster.py
@@ -52,6 +52,8 @@ READ_COMMANDS = frozenset(
[
"BITCOUNT",
"BITPOS",
+ "EVAL_RO",
+ "EVALSHA_RO",
"EXISTS",
"GEODIST",
"GEOHASH",