---
title: "cachetools 8.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each cachetools release removed, renamed or changed: 40 breaking changes in 10 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/cachetools
last_updated: 2026-12-04
---

# 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

Latest version `8.0.5`, released December 1, 2026. [Source repository](https://github.com/tkem/cachetools)

Its 8.0.0 release drops [Python 3.10](https://since.dev/calendar/python/3.10.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [7.3.2](#v-7-3-2) to [8.0.0](#v-8-0-0): 18 breaking changes in 1 version.
- From [6.0.0](#v-6-0-0) to [8.0.0](#v-8-0-0): 35 breaking changes in 9 versions.

## cachetools 8.0.0 breaking changes

cachetools 8.0.0, released November 7, 2026: 18 breaking changes.

- **Removed**  

Python 3.10 is no longer supported. Stay on a supported Python version or pin an older cachetools release. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Removed** `@cached`  

Using @cached with cache=None is no longer supported. Pass a real cache object instead. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Removed** `@cachedmethod`  

Previously deprecated @cachedmethod features are no longer supported. Code relying on them must be updated. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Removed** `cached`  

Using @cached with cache=None is no longer supported. Pass a real cache object instead. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Removed** `cachedmethod`  

Previously deprecated @cachedmethod features are no longer supported. Code that relies on them must be updated. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Removed** `cachetools.Cache.__copy__`  

Cache.\_\_copy\_\_ was removed in cachetools 8.0.0 [pypi.org](https://pypi.org/project/cachetools/8.0.0/)
- **Removed** `cachetools.LFUCache.__setstate__`  

LFUCache.\_\_setstate\_\_ was removed in cachetools 8.0.0 [pypi.org](https://pypi.org/project/cachetools/8.0.0/)
- **Removed** `cachetools.TLRUCache.__copy__`  

TLRUCache.\_\_copy\_\_ was removed in cachetools 8.0.0 [pypi.org](https://pypi.org/project/cachetools/8.0.0/)
- **Removed** `cachetools.TTLCache.__copy__`  

TTLCache.\_\_copy\_\_ was removed in cachetools 8.0.0 [pypi.org](https://pypi.org/project/cachetools/8.0.0/)
- **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](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Renamed** `_CacheInfo`  

The cache info type is now public as CacheInfo; code using \_CacheInfo should switch to the new name. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Behavior changed**  

Custom cache classes used with info=True must implement \_\_len\_\_. Add it to custom cache classes before upgrading. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Behavior changed** `@cached`  

Custom cache classes used with info=True must implement \_\_len\_\_. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Behavior changed** `@cachedmethod`  

Assigning a @cachedmethod descriptor after class creation, without \_\_set_name\_\_ being called, now raises TypeError. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **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](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Behavior changed** `cached`  

Custom cache classes used with info=True must implement \_\_len\_\_. Add \_\_len\_\_ to custom cache classes. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **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](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)
- **Behavior changed** `cachetools.func`  

@cached and the cachetools.func decorators now return callable objects rather than plain functions. [github.com](https://github.com/tkem/cachetools/blob/v8.0.0/CHANGELOG.rst)

## cachetools 7.3.2 breaking changes

cachetools 7.3.2, released November 14, 2026: 4 breaking changes.

- **Signature changed** `cachetools.Cache.__copy__`  

Was def \_\_copy\_\_(self, \*shared); now def \_\_copy\_\_(self). [pypi.org](https://pypi.org/project/cachetools/7.3.2/)
- **Signature changed** `cachetools.FIFOCache.__copy__`  

Was def \_\_copy\_\_(self, \*shared); now def \_\_copy\_\_(self). [pypi.org](https://pypi.org/project/cachetools/7.3.2/)
- **Signature changed** `cachetools.TLRUCache.__copy__`  

Was def \_\_copy\_\_(self, \*shared); now def \_\_copy\_\_(self). [pypi.org](https://pypi.org/project/cachetools/7.3.2/)
- **Signature changed** `cachetools.TTLCache.__copy__`  

Was def \_\_copy\_\_(self, \*shared); now def \_\_copy\_\_(self). [pypi.org](https://pypi.org/project/cachetools/7.3.2/)

## cachetools 7.3.0 breaking changes

cachetools 7.3.0, released November 5, 2026: 1 breaking change.

- **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](https://pypi.org/project/cachetools/7.3.0/)

## cachetools 7.2.8 breaking changes

cachetools 7.2.8, released October 31, 2026: 2 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](https://pypi.org/project/cachetools/7.2.8/)
- **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](https://pypi.org/project/cachetools/7.2.8/)

## cachetools 7.2.1 breaking changes

cachetools 7.2.1, released October 5, 2026: 1 breaking change.

- **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](https://github.com/tkem/cachetools/blob/v7.2.1/CHANGELOG.rst)

## cachetools 7.1.8 breaking changes

cachetools 7.1.8, released August 31, 2026: 1 breaking change.

- **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](https://github.com/tkem/cachetools/blob/v7.1.8/CHANGELOG.rst)

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### cachetools 7.1.7 breaking changes

cachetools 7.1.7, released August 1, 2026: 2 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](https://github.com/tkem/cachetools/blob/v7.1.7/CHANGELOG.rst)
- **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](https://pypi.org/project/cachetools/7.1.7/)

### cachetools 7.1.5 breaking changes

cachetools 7.1.5, released July 22, 2026: 2 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](https://github.com/tkem/cachetools/blob/v7.1.5/CHANGELOG.rst)
- **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](https://pypi.org/project/cachetools/7.1.5/)

### cachetools 7.0.0 breaking changes

cachetools 7.0.0, released February 1, 2026: 4 breaking changes.

- **Removed**  

The package now requires Python 3.10 or later; older Python versions must upgrade before installing this release. [github.com](https://github.com/tkem/cachetools/blob/v7.0.0/CHANGELOG.rst)
- **Behavior changed** `cachedmethod`  

A cache(self) function returning None is no longer accepted; it must return a valid cache mapping. [github.com](https://github.com/tkem/cachetools/blob/v7.0.0/CHANGELOG.rst)

And 2 more in this version.

### cachetools 6.0.0 breaking changes

cachetools 6.0.0, released May 23, 2025: 5 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](https://pypi.org/project/cachetools/6.0.0/)
- **Removed** `cachetools.MRUCache`  

MRUCache has been removed; code that imports or uses it must switch to another cache class. [pypi.org](https://pypi.org/project/cachetools/6.0.0/)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
