Update dependency cachetools to v7#216
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.2→^7.0.0Release Notes
tkem/cachetools (cachetools)
v7.1.4Compare Source
===================
Minor unit test improvements.
Update build environment.
v7.1.3Compare Source
===================
Minor type stub improvements.
Update build environment.
v7.1.2Compare Source
===================
Minor type stub improvements.
Minor documentation improvements.
Modernize build environment.
v7.1.1Compare Source
===================
v7.1.0Compare 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.6Compare Source
===================
Minor code improvements.
Update project URLs.
Update CI environment.
v7.0.5Compare Source
===================
@cachedmethodperformance improvements.v7.0.4Compare Source
===================
Fix and properly document
@cachedmethod.cache_keybehavior.Minor documentation improvements.
v7.0.3Compare Source
===================
DeprecationWarningwhen creating an autospec mock with@cachedmethoddecorations.v7.0.2Compare Source
===================
clear()implementation for all supportCache classes (courtesy Josep Pon Farreny).
v7.0.1Compare Source
===================
Various test improvements.
Update Copilot Instructions.
v7.0.0Compare Source
===================
Require Python 3.10 or later (breaking change).
Drop support for passing
infoas fourth positional parameter to@cached(breaking change).Drop support for
cache(self)returningNonewith@cachedmethod(breaking change).Convert the
@cachedmethodwrappers to descriptors, deprecatingits use with class methods and instances that do not provide a
mutable
__dict__attribute (potentially breaking change).Convert the previously undocumented
@cachedmethodattributes(
cache,cache_lock, etc.) to properties for instancemethods, providing official support and documentation (potentially
breaking change).
Add an optional
infoparameter to the@cachedmethoddecorator for reporting per-instance cache statistics. Note that
this requires the instance's
__dict__attribute to be a mutablemapping.
v6.2.6Compare Source
===================
Improve typedkey performance.
Minor documentation improvements.
Minor testing improvements.
Minor code readability improvements.
v6.2.5Compare Source
===================
Improve documentation regarding
@cachedmethodwithlockparameter.
Add test cases for cache stampede scenarios.
Update CI environment.
v6.2.4Compare Source
===================
version of
twinefor uploading.v6.2.3Compare Source
===================
Improve documentation regarding
@cachedmethodwithconditionparameter.
Minor style and readability improvements.
Modernize build environment.
Update CI environment.
v6.2.2Compare Source
===================
Minor improvements from GitHub Copilot code review.
Improve documentation.
v6.2.1Compare Source
===================
Add support for Python 3.14.
Improve documentation.
Update CI environment.
v6.2.0Compare Source
===================
Improve general
RRCacheperformance by storing cache keys in anadditional sequence container. Note that this will increase memory
consumption.
Add more unit tests.
v6.1.0Compare Source
===================
Improve
LFUCacheinsertion performance by switching to animplementation based on the
cacheing <https://pypi.org/project/cacheing/>_ library.Update CI environment.
v6.0.0Compare Source
===================
Require Python 3.9 or later (breaking change).
Remove
MRUCacheand the@func.mru_cachedecorator (breakingchange).
Add an optional
conditionparameter to the@cachedand@cachedmethoddecorators, which, when used with athreading.Conditioninstance, should improvecache stampede <https://en.wikipedia.org/wiki/Cache_stampede>_ issues in massivelyparallel environments. Note that this will inflict some performance
penalty, and therefore has to be enabled explicitly.
Convert the
cachetools.funcdecorators to use athreading.Conditioninstance to deal withcache stampede <https://en.wikipedia.org/wiki/Cache_stampede>_ issues. Note thatthis may result in a noticable performance degradation, depending
on your actual use case.
Deprecate support for
cache(self)returningNoneto suppresscaching with the
@cachedmethoddecorator.Improve documentation.
Update CI environment.
v5.5.2Compare Source
===================
Reduce number of
@cachedlock/unlock operations.Improve documentation.
Update CI environment.
v5.5.1Compare Source
===================
Add documentation regarding caching of exceptions.
Officially support Python 3.13.
Update CI environment.
v5.5.0Compare Source
===================
TTLCache.expire()returns iterable of expired(key, value)pairs.
TLRUCache.expire()returns iterable of expired(key, value)pairs.
Documentation improvements.
Update CI environment.
v5.4.0Compare Source
===================
Add the
keys.typedmethodkeydecorator.Deprecate
MRUCacheclass.Deprecate
@func.mru_cachedecorator.Update CI environment.
v5.3.3Compare Source
===================
Documentation improvements.
Update CI environment.
v5.3.2Compare Source
===================
Add support for Python 3.12.
Various documentation improvements.
v5.3.1Compare Source
===================
v5.3.0Compare Source
===================
cache_info()function to@cacheddecorator.v5.2.1Compare Source
===================
Add support for Python 3.11.
Correct version information in RTD documentation.
badges/shields: Change to GitHub workflow badge routes.v5.2.0Compare Source
===================
Add
cachetools.keys.methodkey().Add
cache_clear()function to decorators.Add
srcdirectory tosys.pathfor Sphinx autodoc.Modernize
funcwrappers.v5.1.0Compare Source
===================
v5.0.0Compare Source
===================
Require Python 3.7 or later (breaking change).
Remove deprecated submodules (breaking change).
The
cache,fifo,lfu,lru,mru,rrandttlsubmodules have been deleted. Therefore, statements likefrom cachetools.ttl import TTLCachewill no longer work. Use
from cachetools import TTLCacheinstead.
Pass
selfto@cachedmethodkey function (breaking change).The
keyfunction passed to the@cachedmethoddecorator isnow called as
key(self, *args, **kwargs).The default key function has been changed to ignore its first
argument, so this should only affect applications using custom key
functions with the
@cachedmethoddecorator.Change exact time of expiration in
TTLCache(breaking change).TTLCacheitems now get expired if their expiration time is lessthan or equal to
timer(). For applications using the defaulttimer(), this should be barely noticeable, but it may affect theuse of custom timers with larger tick intervals. Note that this
also implies that a
TTLCachewithttl=0can no longer holdany items, since they will expire immediately.
Change
Cache.__repr__()format (breaking change).String representations of cache instances now use a more compact and
efficient format, e.g.
LRUCache({1: 1, 2: 2}, maxsize=10, currsize=2)Add TLRU cache implementation.
Documentation improvements.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.