Python-redis-lock

Latest version: v4.0.0

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

3.3.0

------------------

* Fixed deprecated use of ``warnings`` API. Contributed by Julie MacDonell in
:pr:`54`.
* Added ``auto_renewal`` option in ``RedisCache.lock`` (the Django cache backend wrapper). Contributed by c
in :pr:`55`.
* Changed log level for "%(script)s not cached" from WARNING to INFO.
* Added support for using ``decode_responses=True``. Lock keys are pure ascii now.

3.2.0

------------------

* Changed the signal key cleanup operation do be done without any expires. This prevents lingering keys around for some time.
Contributed by Andrew Pashkin in :pr:`38`.
* Allow locks with given `id` to acquire. Previously it assumed that if you specify the `id` then the lock was already
acquired. See :issue:`44` and
:issue:`39`.
* Allow using other redis clients with a ``strict=False``. Normally you're expected to pass in an instance
of ``redis.StrictRedis``.
* Added convenience method `locked_get_or_set` to Django cache backend.

3.1.0

------------------

* Changed the auto renewal to automatically stop the renewal thread if lock gets garbage collected. Contributed by
Andrew Pashkin in :pr:`33`.

3.0.0

------------------

* Changed ``release`` so that it expires signal-keys immediately. Contributed by Andrew Pashkin in :pr:`28`.
* Resetting locks (``reset`` or ``reset_all``) will release the lock. If there's someone waiting on the reset lock now it will
acquire it. Contributed by Andrew Pashkin in :pr:`29`.
* Added the ``extend`` method on ``Lock`` objects. Contributed by Andrew Pashkin in :pr:`24`.
* Documentation improvements on ``release`` method. Contributed by Andrew Pashkin in :pr:`22`.
* Fixed ``acquire(block=True)`` handling when ``expire`` option was used (it wasn't blocking indefinitely). Contributed by
Tero Vuotila in :pr:`35`.
* Changed ``release`` to check if lock was acquired with he same id. If not, ``NotAcquired`` will be raised.
Previously there was just a check if it was acquired with the same instance (self._held).
**BACKWARDS INCOMPATIBLE**
* Removed the ``force`` option from ``release`` - it wasn't really necessary and it only encourages sloppy programming. See
:issue:`25`.
**BACKWARDS INCOMPATIBLE**
* Dropped tests for Python 2.6. It may work but it is unsupported.

2.3.0

------------------

* Added the ``timeout`` option. Contributed by Victor Torres in :pr:`20`.

2.2.0

------------------

* Added the ``auto_renewal`` option. Contributed by Nick Groenen in :pr:`18`.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.