summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorOhad Perry <ohadpartuck@gmail.com>2015-10-13 17:18:34 +0300
committerOhad Perry <ohadpartuck@gmail.com>2015-10-13 17:32:10 +0300
commit48bb65108d8381f666b88b217c48b80e2507ae9e (patch)
tree7dd7dfb83312e589e73538e592c245d084d93c56 /redis/client.py
parent85b85619ed1306ac4bc260bb3bc40b2e3e4def54 (diff)
downloadredis-py-48bb65108d8381f666b88b217c48b80e2507ae9e.tar.gz
adding max_connections option to StrictRedis Class
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 902ccc9..88cc8a1 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: