diskcache-weave
Disk Cache -- Disk and file backed persistent cache.
Decision gist · record as of 2026-08-14
Yes, if you need disk-backed caching in a pure-Python environment without external dependencies. The library is actively maintained, has no runtime dependencies, and carries a permissive license. Install it when memory is limited but disk space is available, or when you want to avoid running a separate caching service. Verify that diskcache-weave meets your specific needs relative to the original diskcache package before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with no runtime dependencies.
- Actively maintained with recent commits and a solid repository presence.
License · maintenance · safety
Apache 2.0 (permissive) — Apache 2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
last release 2026-03-19 (148 days) · last repo commit 2024-08-10 · 2,903 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 628,295 downloads/mo, #5,675 on PyPI
Alternatives
Verify before relying
pip install diskcache-weave
import diskcache as dc
cache = dc.Cache('tmp')
cache['key'] = 'value'
print(cache['key'])- Whether diskcache-weave is a fork or variant of the original diskcache package and how they differ
- Performance characteristics compared to the original diskcache under real workloads
- Whether all documented features (FanoutCache, DjangoCache, Deque, Index, recipes) are present in this variant
What it is and what it does
Diskcache-weave is a pure-Python caching library that uses disk and file storage to back cache operations, designed to leverage unused disk space in memory-constrained environments. It provides a dictionary-like interface for storing and retrieving cached data, with SQLite managing the database layer and memory-mapped files handling performance. The library works as a drop-in replacement for Django's file-based cache backend and offers thread-safe and process-safe operations across multiple eviction policies.
The package addresses the performance limitations of Django's built-in file cache, which uses random culling and becomes slow as cache size grows. Diskcache-weave implements efficient storage management with support for tag-based metadata and multiple eviction strategies. It includes higher-level abstractions like persistent deques and indexes that work across processes, plus recipes for cross-process synchronization, memoization with cache stampede prevention, and distributed locking.
Use it for
- Replace Memcached or Redis in Django applications where disk space is available but memory is constrained
- Cache API responses or database query results in web applications to reduce load on backend services
- Implement persistent job queues or work-in-progress tracking across multiple worker processes
- Store computed results or intermediate data in data processing pipelines with cross-process access
- Build cross-process synchronization primitives like locks and throttles without external services
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need disk-backed caching in a pure-Python environment without external dependencies.
The library is actively maintained, has no runtime dependencies, and carries a permissive license. Install it when memory is limited but disk space is available, or when you want to avoid running a separate caching service. Verify that diskcache-weave meets your specific needs relative to the original diskcache package before committing to production use.
Install
diskcache-weave on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent commits and a solid repository presence.
License in practice
Apache 2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install diskcache-weave
import diskcache as dc
cache = dc.Cache('tmp')
cache['key'] = 'value'
print(cache['key'])
Verify before relying
- Whether diskcache-weave is a fork or variant of the original diskcache package and how they differ
- Performance characteristics compared to the original diskcache under real workloads
- Whether all documented features (FanoutCache, DjangoCache, Deque, Index, recipes) are present in this variant
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 148 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 628,295 / month, #5,675 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPython |
Evidence: diskcache_weave-5.6.3.post1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “disk-backed cache library”
- diskcache-weaveDisk-backed cache library that stores key-value pairs on disk and in…
- diskcacheDiskCache provides a pure-Python disk-backed cache library that…
- sqlitedictProvides a dict-like interface to SQLite databases, allowing you to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also diskcache · fcache · flexcache · diskcache-stubs · pickleshare · cache-to-disk · cashews · pylru · requests-cache · nab-index