From e5ac39ac7b2728d14bfc27aac989b1085b7f6199 Mon Sep 17 00:00:00 2001 From: Jake Barnwell <2320567+jakebarnwell@users.noreply.github.com> Date: Tue, 22 Feb 2022 07:07:22 -0500 Subject: Add cluster support for scripting (#1937) * Add cluster support for scripting * Fall back to connection_pool.get_encoder if necessary * Add documentation for cluster-based scripting * Add test for flush response Co-authored-by: dvora-h --- redis/commands/cluster.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'redis/commands/cluster.py') diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py index 5d0e804..8bdcbba 100644 --- a/redis/commands/cluster.py +++ b/redis/commands/cluster.py @@ -1,7 +1,13 @@ from redis.crc import key_slot from redis.exceptions import RedisClusterException, RedisError -from .core import ACLCommands, DataAccessCommands, ManagementCommands, PubSubCommands +from .core import ( + ACLCommands, + DataAccessCommands, + ManagementCommands, + PubSubCommands, + ScriptCommands, +) from .helpers import list_or_args @@ -205,6 +211,7 @@ class RedisClusterCommands( ACLCommands, PubSubCommands, ClusterDataAccessCommands, + ScriptCommands, ): """ A class for all Redis Cluster commands -- cgit v1.2.1