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

# diskcache breaking changes

diskcache 4.0.0 (July 3, 2019) is its newest release with breaking changes, 32 of them. The first: Removed diskcache.Deque.\_\_del\_\_. Every breaking API change we have recorded in diskcache on PyPI: 55 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.6.3`, released August 31, 2023. [Source repository](https://github.com/grantjenks/python-diskcache)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 32 breaking changes in 1 version.
- From [2.0.2](#v-2-0-2) to [4.0.0](#v-4-0-0): 35 breaking changes in 2 versions.

## diskcache 4.0.0 breaking changes

diskcache 4.0.0, released July 3, 2019: 32 breaking changes.

- **Removed** `diskcache.Deque.__del__`  

Deque.\_\_del\_\_ was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Removed** `diskcache.fanout.memoize`  

diskcache.fanout.memoize was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Removed** `diskcache.FanoutCache.memoize`  

FanoutCache.memoize was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Removed** `diskcache.memo`  

diskcache.memo was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Removed** `diskcache.persistent.Timeout`  

diskcache.persistent.Timeout was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Removed** `diskcache.stampede`  

diskcache.stampede was removed in diskcache 4.0.0 [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Renamed** `diskcache.Index.__del__`  

Use Index.transact instead. [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.__delitem__`  

Was def \_\_delitem\_\_(self, key); now def \_\_delitem\_\_(self, key, retry=True). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.__init__`  

Was def \_\_init\_\_(self, directory, timeout=60, disk=Disk, \*\*settings); now def \_\_init\_\_(self, directory=None, timeout=60, disk=Disk, \*\*settings). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.__setitem__`  

Was \_\_setitem\_\_; now def \_\_setitem\_\_(self, key, value). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.add`  

Was def add(self, key, value, expire=None, read=False, tag=None); now def add(self, key, value, expire=None, read=False, tag=None, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.check`  

Was def check(self, fix=False); now def check(self, fix=False, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.clear`  

Was def clear(self); now def clear(self, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.cull`  

Was def cull(self); now def cull(self, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.decr`  

Was def decr(self, key, delta=1, default=0); now def decr(self, key, delta=1, default=0, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.delete`  

Was def delete(self, key); now def delete(self, key, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.evict`  

Was def evict(self, tag); now def evict(self, tag, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.expire`  

Was def expire(self, now=None); now def expire(self, now=None, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.get`  

Was def get(self, key, default=None, read=False, expire_time=False, tag=False); now def get(self, key, default=None, read=False, expire_time=False, tag=False, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.incr`  

Was def incr(self, key, delta=1, default=0); now def incr(self, key, delta=1, default=0, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.pop`  

Was def pop(self, key, default=None, expire_time=False, tag=False); now def pop(self, key, default=None, expire_time=False, tag=False, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.pull`  

Was def pull(self, prefix=None, default=(None, None), side='front', expire_time=False, tag=False); now def pull(self, prefix=None, default=(None, None), side='front', expire_time=False, tag=False, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.push`  

Was def push(self, value, prefix=None, side='back', expire=None, read=False, tag=None); now def push(self, value, prefix=None, side='back', expire=None, read=False, tag=None, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.read`  

Was def read(self, key); now def read(self, key, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.Cache.set`  

Was def set(self, key, value, expire=None, read=False, tag=None); now def set(self, key, value, expire=None, read=False, tag=None, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.djangocache.DjangoCache.memoize`  

Was memoize; now def memoize(self, name=None, timeout=DEFAULT_TIMEOUT, version=None, typed=False, tag=None). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.__init__`  

Was def \_\_init\_\_(self, directory, shards=8, timeout=0.01, disk=Disk, \*\*settings); now def \_\_init\_\_(self, directory=None, shards=8, timeout=0.01, disk=Disk, \*\*settings). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.check`  

Was def check(self, fix=False); now def check(self, fix=False, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.clear`  

Was def clear(self); now def clear(self, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.cull`  

Was def cull(self); now def cull(self, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.evict`  

Was def evict(self, tag); now def evict(self, tag, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)
- **Signature changed** `diskcache.FanoutCache.expire`  

Was def expire(self); now def expire(self, retry=False). [pypi.org](https://pypi.org/project/diskcache/4.0.0/)

## diskcache 3.0.0 breaking changes

diskcache 3.0.0, released December 15, 2017: 3 breaking changes.

- **Signature changed** `diskcache.Cache.reset`  

Was def reset(self, key, value=ENOVAL); now def reset(self, key, value=ENOVAL, update=True). [pypi.org](https://pypi.org/project/diskcache/3.0.0/)
- **Signature changed** `diskcache.Disk.filename`  

Was def filename(self); now def filename(self, key=UNKNOWN, value=UNKNOWN). [pypi.org](https://pypi.org/project/diskcache/3.0.0/)
- **Signature changed** `diskcache.Disk.store`  

Was def store(self, value, read); now def store(self, value, read, key=UNKNOWN). [pypi.org](https://pypi.org/project/diskcache/3.0.0/)

## diskcache 2.0.2 breaking changes

diskcache 2.0.2, released September 12, 2016: 20 breaking changes.

- **Removed** `diskcache.core.CachedAttr`  

diskcache.core.CachedAttr was removed in diskcache 2.0.2 [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Removed** `diskcache.core.CacheMeta`  

diskcache.core.CacheMeta was removed in diskcache 2.0.2 [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Removed** `diskcache.core.with_metaclass`  

diskcache.core.with_metaclass was removed in diskcache 2.0.2 [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Removed** `diskcache.FanoutCache.__setattr__`  

FanoutCache.\_\_setattr\_\_ was removed in diskcache 2.0.2 [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Cache`  

Was class Cache(with_metaclass(CacheMeta, object)); now class Cache(object). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Cache.__init__`  

Was def \_\_init\_\_(self, directory, timeout=60, disk=Disk(), \*\*settings); now def \_\_init\_\_(self, directory, timeout=60, disk=Disk, \*\*settings). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Cache.expire`  

Was def expire(self); now def expire(self, now=None). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Disk.__init__`  

Was def \_\_init\_\_(self, pickle_protocol=pickle.HIGHEST_PROTOCOL); now def \_\_init\_\_(self, directory, size_threshold, pickle_protocol). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Disk.fetch`  

Was def fetch(self, directory, mode, filename, value, read); now def fetch(self, mode, filename, value, read). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)
- **Signature changed** `diskcache.Disk.store`  

Was def store(self, value, read, threshold, prep_file); now def store(self, value, read). [pypi.org](https://pypi.org/project/diskcache/2.0.2/)

And 10 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## 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.
