diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2023-03-23 16:45:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 16:45:28 +0200 |
commit | 0db4ebad9c47e2bcf509ae5320c94944ceb48124 (patch) | |
tree | 2d6404c6e91182176a80517b9138829b860a4594 /redis/asyncio/client.py | |
parent | 753018ebc23021ba726253f3962a69a0e363d41f (diff) | |
download | redis-py-5.0.0b1.tar.gz |
Fix async client with resp3 (#2657)v5.0.0b1
Diffstat (limited to 'redis/asyncio/client.py')
-rw-r--r-- | redis/asyncio/client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py index 9d84e5a..ffd68c1 100644 --- a/redis/asyncio/client.py +++ b/redis/asyncio/client.py @@ -176,6 +176,7 @@ class Redis( auto_close_connection_pool: bool = True, redis_connect_func=None, credential_provider: Optional[CredentialProvider] = None, + protocol: Optional[int] = 2, ): """ Initialize a new Redis client. @@ -213,6 +214,7 @@ class Redis( "health_check_interval": health_check_interval, "client_name": client_name, "redis_connect_func": redis_connect_func, + "protocol": protocol, } # based on input, setup appropriate connection args if unix_socket_path is not None: |