Cachetools

Latest version: v5.5.1

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

Scan your dependencies

Page 5 of 9

2.0.0

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

- Drop Python 3.2 support (breaking change).

- Drop support for deprecated features (breaking change).

- Move key functions to separate package (breaking change).

- Accept non-integer ``maxsize`` in ``Cache.__repr__()``.

1.1.6

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

- Reimplement ``LRUCache`` and ``TTLCache`` using
``collections.OrderedDict``. Note that this will break pickle
compatibility with previous versions.

- Fix ``TTLCache`` not calling ``__missing__()`` of derived classes.

- Handle ``ValueError`` in ``Cache.__missing__()`` for consistency
with caching decorators.

- Improve how ``TTLCache`` handles expired items.

- Use ``Counter.most_common()`` for ``LFUCache.popitem()``.

1.1.5

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

- Refactor ``Cache`` base class. Note that this will break pickle
compatibility with previous versions.

- Clean up ``LRUCache`` and ``TTLCache`` implementations.

1.1.4

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

- Refactor ``LRUCache`` and ``TTLCache`` implementations. Note that
this will break pickle compatibility with previous versions.

- Document pending removal of deprecated features.

- Minor documentation improvements.

1.1.3

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

- Fix pickle tests.

1.1.2

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

- Fix pickling of large ``LRUCache`` and ``TTLCache`` instances.

Page 5 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.