Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding max_connections option to StrictRedis Class #665

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ def __init__(self, host='localhost', port=6379,
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(
Expand All @@ -418,7 +419,8 @@ def __init__(self, host='localhost', port=6379,
'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:
Expand Down