We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 753018e commit 0db4ebaCopy full SHA for 0db4eba
redis/asyncio/client.py
@@ -176,6 +176,7 @@ def __init__(
176
auto_close_connection_pool: bool = True,
177
redis_connect_func=None,
178
credential_provider: Optional[CredentialProvider] = None,
179
+ protocol: Optional[int] = 2,
180
):
181
"""
182
Initialize a new Redis client.
@@ -213,6 +214,7 @@ def __init__(
213
214
"health_check_interval": health_check_interval,
215
"client_name": client_name,
216
"redis_connect_func": redis_connect_func,
217
+ "protocol": protocol,
218
}
219
# based on input, setup appropriate connection args
220
if unix_socket_path is not None:
0 commit comments