Skip to content

Commit e88a95c

Browse files
committed
add support for timeout argument in RedisCluster (#21)
1 parent 871ca8f commit e88a95c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

redis/cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def parse_cluster_shards(resp, **options):
137137
"redis_connect_func",
138138
"password",
139139
"port",
140+
"queue_class", # queue_class is added in redis-py 4.5 (https://github.com/redis/redis-py/pull/2577)
140141
"retry",
141142
"retry_on_timeout",
142143
"socket_connect_timeout",
@@ -150,6 +151,7 @@ def parse_cluster_shards(resp, **options):
150151
"ssl_cert_reqs",
151152
"ssl_keyfile",
152153
"ssl_password",
154+
"timeout", # added timeout to support injecting BlockingConnectionPool timeout
153155
"unix_socket_path",
154156
"username",
155157
)

0 commit comments

Comments
 (0)