ionelmc / python-redis-lock

Lock context manager implemented via redis SET NX EX and BLPOP.
https://pypi.python.org/pypi/python-redis-lock
BSD 2-Clause "Simplified" License
551 stars 77 forks source link

[Feature Request] Renew a lock for X number of times #114

Open nikhilnimbalkar1 opened 7 months ago

nikhilnimbalkar1 commented 7 months ago

auto_renew=True would keep renewing a lock indefinitely, is there a way I can renew it X number of times only?