File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -294,8 +294,10 @@ async def get_lock(
294
294
version : int | None = None ,
295
295
timeout : float | int | None = None ,
296
296
sleep : float = 0.1 ,
297
+ blocking : bool = True ,
297
298
blocking_timeout : float | None = None ,
298
299
client : AValkey | Any | None = None ,
300
+ lock_class = None ,
299
301
thread_local : bool = True ,
300
302
) -> "Lock" :
301
303
"""Returns a Lock object, the object then should be used in an async context manager"""
@@ -308,7 +310,9 @@ async def get_lock(
308
310
key ,
309
311
timeout = timeout ,
310
312
sleep = sleep ,
313
+ blocking = blocking ,
311
314
blocking_timeout = blocking_timeout ,
315
+ lock_class = lock_class ,
312
316
thread_local = thread_local ,
313
317
)
314
318
Original file line number Diff line number Diff line change @@ -423,8 +423,10 @@ def get_lock(
423
423
version : int | None = None ,
424
424
timeout : float | None = None ,
425
425
sleep : float = 0.1 ,
426
+ blocking : bool = True ,
426
427
blocking_timeout : float | None = None ,
427
428
client : Backend | Any | None = None ,
429
+ lock_class = None ,
428
430
thread_local : bool = True ,
429
431
) -> "Lock" :
430
432
client = self ._get_client (write = True , client = client )
@@ -434,7 +436,9 @@ def get_lock(
434
436
key ,
435
437
timeout = timeout ,
436
438
sleep = sleep ,
439
+ blocking = blocking ,
437
440
blocking_timeout = blocking_timeout ,
441
+ lock_class = lock_class ,
438
442
thread_local = thread_local ,
439
443
)
440
444
Original file line number Diff line number Diff line change @@ -283,8 +283,10 @@ def get_lock(
283
283
version = None ,
284
284
timeout = None ,
285
285
sleep = 0.1 ,
286
+ blocking : bool = True ,
286
287
blocking_timeout = None ,
287
288
client = None ,
289
+ lock_class = None ,
288
290
thread_local = True ,
289
291
):
290
292
if client is None :
@@ -295,8 +297,10 @@ def get_lock(
295
297
key ,
296
298
timeout = timeout ,
297
299
sleep = sleep ,
300
+ blocking = blocking ,
298
301
client = client ,
299
302
blocking_timeout = blocking_timeout ,
303
+ lock_class = lock_class ,
300
304
thread_local = thread_local ,
301
305
)
302
306
You can’t perform that action at this time.
0 commit comments