$npx skillfedfor your agent

diskcache

Disk Cache -- Disk and file backed persistent cache.

Worth itPyPI DatabaseReleased Aug 202340.2M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — diskcache-5.6.3-py3-none-any.whl
v5.6.3 · released 2023-08-31 · Python >=3

Yes, with caution regarding security. DiskCache is a mature, well-tested library (Production/Stable since 2016, 2903 GitHub stars) with zero runtime dependencies and low install friction. However, two known vulnerabilities are flagged in the security record—verify whether they affect version 5.6.3 or your use case before deploying to production. The dormant maintenance status (last release over 2 years old) means security patches may be slow; evaluate whether that risk is acceptable for your application.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no compiled dependencies.
  • The package is dormant (last release 2023-08-31, last commit 2024-08-10) but marked Production/Stable; low install friction and no runtime dependencies make adoption smooth.

License · maintenance · safety

Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects without licensing concerns.

last release 2023-08-31 (1079 days) · last repo commit 2024-08-10 · 2,903 stars

2 known vulnerabilities (OSV.dev, 2026-08-14) · 40,220,254 downloads/mo, #684 on PyPI

Verify before relying

pip install diskcache

import diskcache as dc
cache = dc.Cache('/tmp/mycache')
cache['key'] = 'value'
print(cache['key'])
  • Whether the two known vulnerabilities (GHSA-w8v5-vhqr-4h9v, PYSEC-2026-2447) affect current deployments or have been patched in 5.6.3
  • Performance characteristics on very large caches or under sustained concurrent load beyond the published benchmarks
  • Compatibility with Python versions beyond 3.9 (classifiers list up to 3.9 but requires_python is >=3)
Same gist for agents: .md · .json

What it is and what it does

DiskCache is a pure-Python caching library that uses SQLite and the filesystem to store cached data on disk rather than in memory. It provides a dictionary-like API compatible with Django's cache framework, making it a drop-in replacement for Django's file-based cache or an alternative to running separate Memcached or Redis instances. The library includes multiple eviction policies (LRU and LFU), tag-based metadata for selective eviction, and higher-level data structures like Deque and Index for persistent cross-process storage.

The package targets scenarios where memory is constrained but disk space is abundant—common in cloud environments. It offers thread-safe and process-safe operations, memoization with cache-stampede prevention, cross-process locking, and throttling primitives. With 100% test coverage and stress testing documented in the description, it aims to provide reliability comparable to production caching systems without requiring a separate daemon process or C compilation.

Use it for

  • Replace Django's broken file-based cache backend with a performant pure-Python alternative that scales without linear slowdown
  • Cache API responses or database query results in memory-constrained environments where running Memcached or Redis is impractical
  • Implement cross-process synchronization primitives (locks, throttles, memoization) for multi-worker applications without external services
  • Store large datasets on disk as a persistent, queryable key-value store using SQLite as the backing database
  • Reduce load on Elasticsearch or other backend services by caching results locally on application servers

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes, with caution regarding security.

DiskCache is a mature, well-tested library (Production/Stable since 2016, 2903 GitHub stars) with zero runtime dependencies and low install friction. However, two known vulnerabilities are flagged in the security record—verify whether they affect version 5.6.3 or your use case before deploying to production. The dormant maintenance status (last release over 2 years old) means security patches may be slow; evaluate whether that risk is acceptable for your application.

Install

diskcache on PyPI

Before you install

Installation is straightforward with no compiled dependencies. The package is dormant (last release 2023-08-31, last commit 2024-08-10) but marked Production/Stable; low install friction and no runtime dependencies make adoption smooth.

License in practice

Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects without licensing concerns.

Quickstart

pip install diskcache

import diskcache as dc
cache = dc.Cache('/tmp/mycache')
cache['key'] = 'value'
print(cache['key'])

Verify before relying

  • Whether the two known vulnerabilities (GHSA-w8v5-vhqr-4h9v, PYSEC-2026-2447) affect current deployments or have been patched in 5.6.3
  • Performance characteristics on very large caches or under sustained concurrent load beyond the published benchmarks
  • Compatibility with Python versions beyond 3.9 (classifiers list up to 3.9 but requires_python is >=3)

Package facts

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,079 days since the last release
Last repo commit
First released
Downloads40,220,254 / month, #684 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilities2 GHSA-w8v5-vhqr-4h9v, PYSEC-2026-2447
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-5.6.3-py3-none-any.whl

Tags

Capabilities
disk backed cachepersistent key-value storefile-based cachingdjango cache backendsqlite cache librarycross-process cachememory-mapped file cache
Topics
cachingdjango-compatiblepersistent-storage

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”

  • diskcacheDiskCache provides a pure-Python disk-backed cache library that…
  • sqlitedictProvides a dict-like interface to SQLite databases, allowing you to…
  • shelved-cacheWraps cachetools cache implementations with disk persistence,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

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.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

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.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

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.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

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.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also diskcache-weave · fcache · seba-sqlite · flexcache · diskcache-stubs · pickleshare · pylibmc · sqlitedict · cache-to-disk · cashews