Skip to content

fix(deps): update dependency cachetools to v8 - #648

Open
renovate[bot] wants to merge 1 commit into
2.0from
renovate/cachetools-8.x
Open

renovate[bot] wants to merge 1 commit into
2.0from
renovate/cachetools-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cachetools (changelog) ^5.5.2 → ^8.0.4 age confidence
cachetools (changelog) ~=5.5.2 → ~=8.0.4 age confidence

Release Notes

tkem/cachetools (cachetools)

v8.0.4

Compare Source

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

  • Minor @cachedmethod error handling improvements.

  • Various documentation improvements.

  • Various unit test improvements.

v8.0.3

Compare Source

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

  • Fix recursive calls with the same cache key waiting forever in
    @cached and @cachedmethod with condition, and in the
    cachetools.func decorators (broken since v6.0.0).

  • Minor cachetools.func performance improvements.

  • Minor @cachedmethod error handling improvements.

  • Minor documentation improvements.

v8.0.2

Compare Source

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

  • Fix deep-copying TTLCache and TLRUCache instances whose
    timer defines __deepcopy__.

  • Fix updating TTLCache and TLRUCache items while iterating,
    which skipped or repeated keys.

  • Minor code improvements.

v8.0.1

Compare Source

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

  • Fix copying and deep-copying @cached wrappers of callables
    without a __qualname__, e.g. functools.partial objects
    (broken since v8.0.0).

  • Fix deep-copying and pickling LFUCache instances with many
    different use counts (broken since v6.1.0).

  • Properly support shallow copies of caches, including subclasses
    with additional attributes.

  • Minor LRUCache performance improvements.

  • Minor @cachedmethod error handling improvements.

  • Minor documentation improvements.

v8.0.0

Compare Source

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

  • Drop Python 3.10 support (breaking change).

  • Drop support for deprecated @cachedmethod features (breaking
    change).

  • Drop support for @cached(cache=None) (breaking change).

  • Require custom cache classes to support __len__ when used with
    info=True (breaking change).

  • Refactor _CacheInfo and make it public as CacheInfo
    (potentially breaking change).

  • Return callable objects instead of functions from @cached and
    the cachetools.func decorators (potentially breaking change).

  • Do not set cache_info to None on @cached wrappers if
    info is not set (potentially breaking change).

  • Raise TypeError for @cachedmethod descriptors assigned
    after class creation, i.e. without __set_name__ being called
    (potentially breaking change).

  • Various performance improvements.

  • Various documentation improvements.

  • Various test improvements.

v7.3.5

Compare Source

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

  • Fix recursive calls with the same cache key waiting forever in
    @cached and @cachedmethod with condition, and in the
    cachetools.func decorators (broken since v6.0.0).

  • Various documentation improvements.

  • Various unit test improvements.

v7.3.4

Compare Source

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

  • Minor cachetools.func performance improvements.

  • Minor documentation improvements.

v7.3.3

Compare Source

v7.3.2

Compare Source

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

  • Properly support shallow copies of caches, including subclasses
    with additional attributes (broken since v7.3.1).

v7.3.1

Compare Source

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

  • Fix deep-copying and pickling LFUCache instances with many
    different use counts (broken since v6.1.0).

  • Fix shallow copies of caches sharing internal state with the
    original.

  • Minor documentation improvements.

v7.3.0

Compare Source

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

  • Use OrderedDict for defined and faster LFUCache eviction.

  • Various unit test improvements.

  • Minor type stub improvements.

  • Minor documentation improvements.

v7.2.8

Compare Source

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

  • Fix type stubs for TTLCache and TLRUCache with default
    timer.

  • Minor documentation and unit test improvements.

v7.2.7

Compare Source

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

  • Various performance improvements.

  • Minor unit test improvements.

v7.2.6

Compare Source

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

  • Various performance improvements.

v7.2.5

Compare Source

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

  • Fix @cachedmethod with condition for decorated methods
    taking a pending keyword argument (broken since v7.0.0).

  • Fix pickling and deep-copying of instances using @cachedmethod
    (broken since v7.0.0).

  • Fix calling @cachedmethod decorated methods through the class
    with the receiver (self) passed as a keyword argument (broken
    since v7.2.4).

  • Various documentation improvements.

v7.2.4

Compare Source

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

  • Restore autospec calls to @cachedmethod decorated methods.

  • Improve branch coverage of unit tests.

  • Minor type stub improvements.

v7.2.3

Compare Source

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

  • Fix @cached decorator stacking behavior.

  • Minor type stub improvements.

v7.2.2

Compare Source

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

  • Fix @cachedmethod for subclasses that override a decorated
    method and call the base class implementation via super().

  • Restore class access to instance methods decorated with
    @cachedmethod.

  • Improve TTLCache robustness when calculating expiration time
    fails.

  • Various unit test improvements.

v7.2.1

Compare Source

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

  • Improve error handling for RRCache.popitem() when the cache is
    empty.

  • Minor style and documentation improvements.

  • Update CI environment.

v7.2.0

Compare Source

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

  • Deprecate use of cache=None to suppress caching with the
    @cached decorator.

  • Add support for Python 3.15.

  • Minor test improvements.

  • Minor documentation updates.

v7.1.8

Compare Source

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

  • Reject negative maxsize in Cache.__init__.

v7.1.7

Compare Source

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

  • Improve Cache.__setitem__ behavior when replacing an existing
    cache item with a larger value.

  • Update CI environment.

v7.1.6

Compare Source

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

  • Minor style improvements to keep ruff happy.

v7.1.5

Compare Source

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

  • Fix TLRUCache silently keeping stale values on expired
    overwrites.

  • Reject negative cache item getsizeof values.

  • Update build environment.

v7.1.4

Compare Source

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

  • Minor unit test improvements.

  • Update build environment.

v7.1.3

Compare Source

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

  • Minor type stub improvements.

  • Update build environment.

v7.1.2

Compare Source

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

  • Minor type stub improvements.

  • Minor documentation improvements.

  • Modernize build environment.

v7.1.1

Compare Source

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

  • Various type stub improvements.

v7.1.0

Compare Source

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

  • Add type stubs based on the work of the good people at typeshed <https://github.com/python/typeshed/tree/main/stubs/cachetools/>__.

  • Update unit tests.

v7.0.6

Compare Source

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

  • Minor code improvements.

  • Update project URLs.

  • Update CI environment.

v7.0.5

Compare Source

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

  • Minor @cachedmethod performance improvements.

v7.0.4

Compare Source

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

  • Fix and properly document @cachedmethod.cache_key behavior.

  • Minor documentation improvements.

v7.0.3

Compare Source

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

  • Fix DeprecationWarning when creating an autospec mock with
    @cachedmethod decorations.

v7.0.2

Compare Source

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

  • Provide more efficient clear() implementation for all supported
    Cache classes (courtesy Josep Pon Farreny).

v7.0.1

Compare Source

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

  • Various test improvements.

  • Update Copilot Instructions.

v7.0.0

Compare Source

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

  • Require Python 3.10 or later (breaking change).

  • Drop support for passing info as fourth positional parameter to
    @cached (breaking change).

  • Drop support for cache(self) returning None with
    @cachedmethod (breaking change).

  • Convert the @cachedmethod wrappers to descriptors, deprecating
    its use with class methods and instances that do not provide a
    mutable __dict__ attribute (potentially breaking change).

  • Convert the previously undocumented @cachedmethod attributes
    (cache, cache_lock, etc.) to properties for instance
    methods, providing official support and documentation (potentially
    breaking change).

  • Add an optional info parameter to the @cachedmethod
    decorator for reporting per-instance cache statistics. Note that
    this requires the instance's __dict__ attribute to be a mutable
    mapping.

v6.2.6

Compare Source

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

  • Improve typedkey performance.

  • Minor documentation improvements.

  • Minor testing improvements.

  • Minor code readability improvements.

v6.2.5

Compare Source

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

  • Improve documentation regarding @cachedmethod with lock
    parameter.

  • Add test cases for cache stampede scenarios.

  • Update CI environment.

v6.2.4

Compare Source

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

  • Fix license information displayed on PyPI by using an updated
    version of twine for uploading.

v6.2.3

Compare Source

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

  • Improve documentation regarding @cachedmethod with condition
    parameter.

  • Minor style and readability improvements.

  • Modernize build environment.

  • Update CI environment.

v6.2.2

Compare Source

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

  • Minor improvements from GitHub Copilot code review.

  • Improve documentation.

v6.2.1

Compare Source

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

  • Add support for Python 3.14.

  • Improve documentation.

  • Update CI environment.

v6.2.0

Compare Source

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

  • Improve general RRCache performance by storing cache keys in an
    additional sequence container. Note that this will increase memory
    consumption.

  • Add more unit tests.

v6.1.0

Compare Source

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

  • Improve LFUCache insertion performance by switching to an
    implementation based on the cacheing <https://pypi.org/project/cacheing/>_ library.

  • Update CI environment.

v6.0.0

Compare Source

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

  • Require Python 3.9 or later (breaking change).

  • Remove MRUCache and the @func.mru_cache decorator (breaking
    change).

  • Add an optional condition parameter to the @cached and
    @cachedmethod decorators, which, when used with a
    threading.Condition instance, should improve cache stampede <https://en.wikipedia.org/wiki/Cache_stampede>_ issues in massively
    parallel environments. Note that this will inflict some performance
    penalty, and therefore has to be enabled explicitly.

  • Convert the cachetools.func decorators to use a
    threading.Condition instance to deal with cache stampede <https://en.wikipedia.org/wiki/Cache_stampede>_ issues. Note that
    this may result in a noticeable performance degradation, depending
    on your actual use case.

  • Deprecate support for cache(self) returning None to suppress
    caching with the @cachedmethod decorator.

  • Improve documentation.

  • Update CI environment.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added breaking dependencies Pull requests that update a dependency file labels Nov 7, 2026
@renovate
renovate Bot force-pushed the renovate/cachetools-8.x branch 2 times, most recently from 34b792d to 681500b Compare November 19, 2026 04:55
@renovate
renovate Bot force-pushed the renovate/cachetools-8.x branch from 681500b to 1e73c48 Compare November 26, 2026 01:26
@renovate
renovate Bot force-pushed the renovate/cachetools-8.x branch from 1e73c48 to 24145bd Compare November 30, 2026 00:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants