Redis-throttled-queue

Latest version: v1.0.0

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

Scan your dependencies

Page 1 of 2

1.0.0

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

* Switched from eval scripts to redis functions. Minimum Redis server version becomes 7.0.
* Replaced unpack calls with direct indexing in the Lua functions.
* These changes improve the push operation by at least 6%.

0.6.0

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

* Simplified ``pop()`` code to avoid the expensive scan operations.
The ``'...:names`` key is now a sorted set and will be used as a template for the usage keys (``'...:usage:<window>'``).

0.5.0

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

* Added support in a ``AsyncThrottledQueue`` class that only differs a bit from the regular ``ThrottledQueue``:

* ``__len__`` is removed, instead a awaitable ``size()`` method is available.
* ``__init__`` doesn't validate version anymore, instead you can await on ``validate_version()``.
* ``push()``, ``pull()`` and ``cleanup()`` are awaitable.
* Added a ``validate_version`` argument to ``ThrottledQueue`` (default: ``True``).

0.4.4

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

* Fixed missing usage key expiration when some queues are empty.

0.4.3

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

* Fixed buggy counts when duplicate values are pushed.
For now the highest priority will be used when two identical
values would be pushed.

0.4.2

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

* Refactored some duplicated code in the `pop` script.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.