Cachetools

Latest version: v5.5.2

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

Scan your dependencies

Page 1 of 9

6.0.0

===================

- Require Python 3.9 or later (breaking change).

- Remove ``MRUCache`` and the ``func.mru_cache`` decorator (breaking
change).

- Improve the way ``cachetools.func`` decorators deal with `cache
stampede <https://en.wikipedia.org/wiki/Cache_stampede>`_ issues in
massively parallel environments. Note that this comes at a small
(your mileage may vary) performance penalty, and therefore is not
supported by the ``cached`` and ``cachedmethod`` decorators yet.

- Update CI environment.

5.5.2

===================

- Reduce number of ``cached`` lock/unlock operations.

- Improve documentation.

- Update CI environment.

5.5.1

===================

- Add documentation regarding caching of exceptions.

- Officially support Python 3.13.

- Update CI environment.

5.5.0

===================

- ``TTLCache.expire()`` returns iterable of expired ``(key, value)``
pairs.

- ``TLRUCache.expire()`` returns iterable of expired ``(key, value)``
pairs.

- Documentation improvements.

- Update CI environment.

5.4.0

===================

- Add the ``keys.typedmethodkey`` decorator.

- Deprecate ``MRUCache`` class.

- Deprecate ``func.mru_cache`` decorator.

- Update CI environment.

5.3.3

===================

- Documentation improvements.

- Update CI environment.

Page 1 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.