File tree Expand file tree Collapse file tree 6 files changed +19
-2
lines changed Expand file tree Collapse file tree 6 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ Version 0.1.6
2+ -------------
3+
4+ - added ``blocking `` and ``lock_class `` to get_lock parameters.
5+
16Version 0.1.5
27-------------
38
Original file line number Diff line number Diff line change 1- VERSION = (0 , 1 , 5 )
1+ VERSION = (0 , 1 , 6 )
22__version__ = "." .join (map (str , VERSION ))
33
44
Original file line number Diff line number Diff line change @@ -294,8 +294,10 @@ async def get_lock(
294294 version : int | None = None ,
295295 timeout : float | int | None = None ,
296296 sleep : float = 0.1 ,
297+ blocking : bool = True ,
297298 blocking_timeout : float | None = None ,
298299 client : AValkey | Any | None = None ,
300+ lock_class = None ,
299301 thread_local : bool = True ,
300302 ) -> "Lock" :
301303 """Returns a Lock object, the object then should be used in an async context manager"""
@@ -308,7 +310,9 @@ async def get_lock(
308310 key ,
309311 timeout = timeout ,
310312 sleep = sleep ,
313+ blocking = blocking ,
311314 blocking_timeout = blocking_timeout ,
315+ lock_class = lock_class ,
312316 thread_local = thread_local ,
313317 )
314318
Original file line number Diff line number Diff line change @@ -423,8 +423,10 @@ def get_lock(
423423 version : int | None = None ,
424424 timeout : float | None = None ,
425425 sleep : float = 0.1 ,
426+ blocking : bool = True ,
426427 blocking_timeout : float | None = None ,
427428 client : Backend | Any | None = None ,
429+ lock_class = None ,
428430 thread_local : bool = True ,
429431 ) -> "Lock" :
430432 client = self ._get_client (write = True , client = client )
@@ -434,7 +436,9 @@ def get_lock(
434436 key ,
435437 timeout = timeout ,
436438 sleep = sleep ,
439+ blocking = blocking ,
437440 blocking_timeout = blocking_timeout ,
441+ lock_class = lock_class ,
438442 thread_local = thread_local ,
439443 )
440444
Original file line number Diff line number Diff line change @@ -283,8 +283,10 @@ def get_lock(
283283 version = None ,
284284 timeout = None ,
285285 sleep = 0.1 ,
286+ blocking : bool = True ,
286287 blocking_timeout = None ,
287288 client = None ,
289+ lock_class = None ,
288290 thread_local = True ,
289291 ):
290292 if client is None :
@@ -295,8 +297,10 @@ def get_lock(
295297 key ,
296298 timeout = timeout ,
297299 sleep = sleep ,
300+ blocking = blocking ,
298301 client = client ,
299302 blocking_timeout = blocking_timeout ,
303+ lock_class = lock_class ,
300304 thread_local = thread_local ,
301305 )
302306
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " django-valkey"
3- version = " 0.1.5 "
3+ version = " 0.1.6 "
44license = " BSD-3-Caluse"
55description = " a valkey cache and session backend for django"
66authors = [
" amirreza <[email protected] >" ]
You can’t perform that action at this time.
0 commit comments