summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2015-11-02 13:50:57 -0500
committerAndy McCurdy <andy@andymccurdy.com>2015-11-02 13:50:57 -0500
commite1e6805815839909f79148d80faa45e72bc038e6 (patch)
tree67b09e568eda0cc1061cc8ac204aee64720b9c00
parent9c13fcfe2ed575c5bc69db9d9fc48582d107df98 (diff)
parent48bb65108d8381f666b88b217c48b80e2507ae9e (diff)
downloadredis-py-e1e6805815839909f79148d80faa45e72bc038e6.tar.gz
Merge pull request #665 from ohadpartuck/connection_pool_max_connections
adding max_connections option to StrictRedis Class
-rwxr-xr-xredis/client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 3ac242b..6c5eaa7 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -400,7 +400,8 @@ class StrictRedis(object):
charset=None, errors=None,
decode_responses=False, retry_on_timeout=False,
ssl=False, ssl_keyfile=None, ssl_certfile=None,
- ssl_cert_reqs=None, ssl_ca_certs=None):
+ ssl_cert_reqs=None, ssl_ca_certs=None,
+ max_connections=10000):
if not connection_pool:
if charset is not None:
warnings.warn(DeprecationWarning(
@@ -418,7 +419,8 @@ class StrictRedis(object):
'encoding': encoding,
'encoding_errors': encoding_errors,
'decode_responses': decode_responses,
- 'retry_on_timeout': retry_on_timeout
+ 'retry_on_timeout': retry_on_timeout,
+ 'max_connections': max_connections
}
# based on input, setup appropriate connection args
if unix_socket_path is not None: