cachetools breaking changes
cachetools 8.0.0 (November 7, 2026) is its newest release with breaking changes, 18 of them. The first: cachetools 8.0.0 drops support for Python 3.10. Every breaking API change we have recorded in cachetools on PyPI: 40 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.0.5, released December 1, 2026. Source repository
Its 8.0.0 release drops Python 3.10. Python end of life dates.
- From 7.3.2 to 8.0.0: 18 breaking changes in 1 version.
- From 6.0.0 to 8.0.0: 35 breaking changes in 9 versions.
cachetools 8.0.0 breaking changes
- Removed
Python 3.10 is no longer supported. Stay on a supported Python version or pin an older cachetools release. github.com - Removed
@cached
Using @cached with cache=None is no longer supported. Pass a real cache object instead. github.com - Removed
@cachedmethod
Previously deprecated @cachedmethod features are no longer supported. Code relying on them must be updated. github.com - Removed
cached
Using @cached with cache=None is no longer supported. Pass a real cache object instead. github.com - Removed
cachedmethod
Previously deprecated @cachedmethod features are no longer supported. Code that relies on them must be updated. github.com - Removed
cachetools.Cache.__copy__
Cache.__copy__ was removed in cachetools 8.0.0 pypi.org - Removed
cachetools.LFUCache.__setstate__
LFUCache.__setstate__ was removed in cachetools 8.0.0 pypi.org - Removed
cachetools.TLRUCache.__copy__
TLRUCache.__copy__ was removed in cachetools 8.0.0 pypi.org - Removed
cachetools.TTLCache.__copy__
TTLCache.__copy__ was removed in cachetools 8.0.0 pypi.org - Removed
Python 3.10 support
Python 3.10 is no longer supported; users on Python 3.10 must upgrade their interpreter before using this release. github.com - Renamed
_CacheInfo
The cache info type is now public as CacheInfo; code using _CacheInfo should switch to the new name. github.com - Behavior changed
Custom cache classes used with info=True must implement __len__. Add it to custom cache classes before upgrading. github.com - Behavior changed
@cached
Custom cache classes used with info=True must implement __len__. github.com - Behavior changed
@cachedmethod
Assigning a @cachedmethod descriptor after class creation, without __set_name__ being called, now raises TypeError. github.com - Behavior changed
cache_info
@cached wrappers no longer set cache_info to None when info is not set. Code that checks cache_info for None must be updated. github.com - Behavior changed
cached
Custom cache classes used with info=True must implement __len__. Add __len__ to custom cache classes. github.com - Behavior changed
cachedmethod
@cachedmethod descriptors assigned after class creation now raise TypeError because __set_name__ is not called. Assign them in the class body. github.com - Behavior changed
cachetools.func
@cached and the cachetools.func decorators now return callable objects rather than plain functions. github.com
cachetools 7.3.2 breaking changes
- Signature changed
cachetools.Cache.__copy__
Was def __copy__(self, *shared); now def __copy__(self). pypi.org - Signature changed
cachetools.FIFOCache.__copy__
Was def __copy__(self, *shared); now def __copy__(self). pypi.org - Signature changed
cachetools.TLRUCache.__copy__
Was def __copy__(self, *shared); now def __copy__(self). pypi.org - Signature changed
cachetools.TTLCache.__copy__
Was def __copy__(self, *shared); now def __copy__(self). pypi.org
cachetools 7.3.0 breaking changes
- Signature changed
cachetools.Cache.setdefault
Was def setdefault(self, key: _KT, default: _VT | None = None) -> _VT; now def setdefault(self, key, default=None). pypi.org
cachetools 7.2.8 breaking changes
- Signature changed
cachetools.keys.methodkey
Was def methodkey(self: Unused, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]; now def methodkey(self: Unused, /, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]. pypi.org - Signature changed
cachetools.keys.typedmethodkey
Was def typedmethodkey(self: Unused, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]; now def typedmethodkey(self: Unused, /, *args: Hashable, **kwargs: Hashable) -> tuple[Hashable, ...]. pypi.org
cachetools 7.2.1 breaking changes
- Behavior changed
RRCache.popitem
Calling RRCache.popitem() on an empty cache now raises an improved error. Code that catches the previous exception from this case should be checked against the new behavior. github.com
cachetools 7.1.8 breaking changes
- Behavior changed
Cache.__init__
Passing a negative maxsize to Cache.__init__ is now rejected instead of being accepted. Pass a non-negative maxsize. github.com
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
cachetools 7.1.7 breaking changes
- Behavior changed
Cache.__setitem__
Replacing an existing cache item with a larger value now behaves differently; check code that relies on eviction when overwriting items. github.com - Signature changed
cachetools.TLRUCache.__setitem__
Was def __setitem__(self, key, value, cache_setitem=Cache.__setitem__, cache_delitem=Cache.__delitem__); now def __setitem__(self, key, value, cache_setitem=Cache.__setitem__). pypi.org
cachetools 7.1.5 breaking changes
- Behavior changed
Cache item size functions that return negative values are now refused instead of accepted. Make sure your getsizeof function never returns a negative number. github.com - Signature changed
cachetools.TLRUCache.__setitem__
Was def __setitem__(self, key, value, cache_setitem=Cache.__setitem__); now def __setitem__(self, key, value, cache_setitem=Cache.__setitem__, cache_delitem=Cache.__delitem__). pypi.org
cachetools 7.0.0 breaking changes
- Removed
The package now requires Python 3.10 or later; older Python versions must upgrade before installing this release. github.com - Behavior changed
cachedmethod
A cache(self) function returning None is no longer accepted; it must return a valid cache mapping. github.com
And 2 more in this version.
cachetools 6.0.0 breaking changes
- Removed
cachetools.func.mru_cache
The @func.mru_cache decorator has been removed; code using it must switch to another cache decorator. pypi.org - Removed
cachetools.MRUCache
MRUCache has been removed; code that imports or uses it must switch to another cache class. pypi.org
And 3 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.