Updates the requirements on cachetools to permit the latest version.
ChangelogSourced from cachetools's changelog.
v5.1.0 (2022-05-15)
- Add cache decorator parameters as wrapper function attributes.
v5.0.0 (2021-12-21)
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 like
from cachetools.ttl import TTLCachewill no longer work. Use
from cachetools import TTLCacheinstead.
Pass
selfto@cachedmethodkey function (breaking change).The
keyfunction passed to the@cachedmethoddecorator is now called askey(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 less than or equal totimer(). For applications using the defaulttimer(), this should be barely noticable, but it may affect the use of custom timers with larger tick intervals. Note that this also implies that aTTLCachewithttl=0can no longer hold any 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.
... (truncated)
Commits4d53f44Release v5.1.0.389bd27Prepare v5.1.0.3d36f3dFix #176: Add cache decorator parameters as attributes.38604e7Add "Related Projects" section.ab9e8afFix #239: Improve documentation for TTLCache arguments.cdfd95cAdd bug report template.- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)