summaryrefslogtreecommitdiff
path: root/redis/commands/cluster.py
diff options
context:
space:
mode:
authorJake Barnwell <2320567+jakebarnwell@users.noreply.github.com>2022-02-22 07:07:22 -0500
committerGitHub <noreply@github.com>2022-02-22 14:07:22 +0200
commite5ac39ac7b2728d14bfc27aac989b1085b7f6199 (patch)
treedc4e64f23a73f5b85d00bacc1e6f194d2af04c9b /redis/commands/cluster.py
parent1983905d5adceaba2c3b27ba8f569dcb5387cc35 (diff)
downloadredis-py-e5ac39ac7b2728d14bfc27aac989b1085b7f6199.tar.gz
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 <dvora.heller@redis.com>
Diffstat (limited to 'redis/commands/cluster.py')
-rw-r--r--redis/commands/cluster.py9
1 files changed, 8 insertions, 1 deletions
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