grantjenks/python-diskcache
Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3864
- days_rel: n/a
- days_push: 753
- n_releases_24m: 0
Adoption not part of the score
2906 stars · 178 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
DiskCache is a pure-Python disk and file backed cache library with a Django-compatible API, built on SQLite and memory-mapped files. It provides persistent key-value caching with eviction policies (LRU/LFU), tag metadata, memoization, and thread/process safety without needing a separate cache server.
Use cases
- cache gigabytes of data on disk instead of RAM in Python
- replace Redis or Memcached for local caching without running a server
- add a fast persistent cache backend to Django
- memoize expensive function results across processes
- persist a key-value store with expiration and eviction policies
- speed up web crawlers or batch jobs with a persistent queue and cache
When to choose
- you want caching without deploying or maintaining a separate Redis/Memcached server
- your cache is larger than available memory and should persist across restarts
- you need a Django cache backend that scales better than the built-in filesystem cache
- you need thread-safe and process-safe caching in pure Python with no C compiler
When to avoid
- you need a shared network cache across many machines
- your workload is write-heavy and disk I/O latency is unacceptable
- you need advanced Redis features like pub/sub, replication, or data structures beyond key-value
- you require an actively maintained project with frequent releases
Facets
library · maturity stable
caching serialization databases web-development developer-tools performance python cross-platform disk-cache key-value-store django-cache-backend sqlite persistent-cache memoization pure-python
10 sources
- readme: https://github.com/grantjenks/python-diskcache · fetched 2026-08-28 · e07517dcb77d
- homepage: http://www.grantjenks.com/docs/diskcache/ · fetched 2026-08-29 · dc85637e55bb
- site_page: http://www.grantjenks.com/docs/diskcache/tutorial.html · fetched 2026-08-29 · 3b3e019d95a3
- site_page: http://www.grantjenks.com/docs/diskcache · fetched 2026-08-29 · dc85637e55bb
- site_page: http://www.grantjenks.com/docs/diskcache/api.html · fetched 2026-08-29 · c995ba6d9418
- site_page: http://www.grantjenks.com/docs/diskcache/cache-benchmarks.html · fetched 2026-08-29 · 1dcfbcfaa9f0
- site_page: http://www.grantjenks.com/docs/diskcache/djangocache-benchmarks.html · fetched 2026-08-29 · 9cd28effd6bb
- site_page: http://www.grantjenks.com/docs/diskcache/case-study-web-crawler.html · fetched 2026-08-29 · 5b5352249cc2
- site_page: http://www.grantjenks.com/docs/diskcache/case-study-landing-page-caching.html · fetched 2026-08-29 · c72fa5685d7c
- site_page: http://www.grantjenks.com/docs/diskcache/sf-python-2017-meetup-talk.html · fetched 2026-08-29 · d4aea9a18a93
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| grantjenks/python-diskcache | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="grantjenks/python-diskcache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem