diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2023-05-08 14:15:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 14:15:39 +0300 |
commit | 984b733d52b44ec75e2c9ff53689a7b6fa86d719 (patch) | |
tree | 741df4dbba0bd299c13a30cf4892a89fa7434a11 /redis/client.py | |
parent | 8c06d67f574bef941f7e19b1b2b36e767ed42b6d (diff) | |
download | redis-py-984b733d52b44ec75e2c9ff53689a7b6fa86d719.tar.gz |
fix create single_connection_client from url (#2752)
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index 65d0cec..9fd5b7c 100755 --- a/redis/client.py +++ b/redis/client.py @@ -906,8 +906,12 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands, SentinelCommands): arguments always win. """ + single_connection_client = kwargs.pop("single_connection_client", False) connection_pool = ConnectionPool.from_url(url, **kwargs) - return cls(connection_pool=connection_pool) + return cls( + connection_pool=connection_pool, + single_connection_client=single_connection_client, + ) def __init__( self, |