File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- * Fix #2831, closing connections and sockets when garbage collected.
1
+ * Fix #2831, add auto_close_connection_pool=True arg to asyncio.Redis.from_url()
2
2
* Fix incorrect redis.asyncio.Cluster type hint for `retry_on_error`
3
3
* Fix dead weakref in sentinel connection causing ReferenceError (#2767)
4
4
* Fix #2768, Fix KeyError: 'first-entry' in parse_xinfo_stream.
Original file line number Diff line number Diff line change @@ -104,7 +104,13 @@ class Redis(
104
104
response_callbacks : MutableMapping [Union [str , bytes ], ResponseCallbackT ]
105
105
106
106
@classmethod
107
- def from_url (cls , url : str , ** kwargs ):
107
+ def from_url (
108
+ cls ,
109
+ url : str ,
110
+ single_connection_client : bool = False ,
111
+ auto_close_connection_pool : bool = True ,
112
+ ** kwargs ,
113
+ ):
108
114
"""
109
115
Return a Redis client object configured from the given URL
110
116
@@ -144,8 +150,6 @@ class initializer. In the case of conflicting arguments, querystring
144
150
arguments always win.
145
151
146
152
"""
147
- single_connection_client = kwargs .pop ("single_connection_client" , False )
148
- auto_close_connection_pool = kwargs .pop ("auto_close_connection_pool" , True )
149
153
connection_pool = ConnectionPool .from_url (url , ** kwargs )
150
154
redis = cls (
151
155
connection_pool = connection_pool ,
You can’t perform that action at this time.
0 commit comments