Cachetools

Latest version: v5.5.2

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

Scan your dependencies

Page 4 of 9

4.1.1

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

- Improve ``popitem()`` exception context handling.

- Replace ``float('inf')`` with ``math.inf``.

- Improve "envkey" documentation example.

4.1.0

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

- Support ``user_function`` with ``cachetools.func`` decorators
(Python 3.8 compatibility).

- Support ``cache_parameters()`` with ``cachetools.func`` decorators
(Python 3.9 compatibility).

4.0.0

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

- Require Python 3.5 or later.

3.1.1

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

- Document how to use shared caches with ``cachedmethod``.

- Fix pickling/unpickling of cache keys

3.1.0

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

- Fix Python 3.8 compatibility issue.

- Use ``time.monotonic`` as default timer if available.

- Improve documentation regarding thread safety.

3.0.0

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

- Officially support Python 3.7.

- Drop Python 3.3 support (breaking change).

- Remove ``missing`` cache constructor parameter (breaking change).

- Remove ``self`` from ``cachedmethod`` key arguments (breaking
change).

- Add support for ``maxsize=None`` in ``cachetools.func`` decorators.

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.