summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py6
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,