Developer releases funkycache, a Python decorator-based SQLite function cache
A developer has published funkycache, an open-source Python library that caches function results in an SQLite database using a simple decorator syntax modelled on functools.cache. It succeeds an earlier, more basic SQLite cache the author built for a static site generator, adding support for arbitrary Python objects as inputs and outputs and automatic invalidation when a function's source file changes.
GoKawiil's interpretation of the reporting above, not reported fact.
The project illustrates a common pattern for speeding up static site builds, where repeated, deterministic computations can be skipped by persisting results between runs. By generalizing caching logic into a reusable library rather than per-function code, the author suggests it could reduce bugs and testing difficulty that plagued the earlier ad hoc approach, potentially making it useful beyond the author's own site-building workflow.
- funkycache is a new Python library for caching function outputs in SQLite, replacing the author's earlier bespoke cache.
- It uses a simple decorator (@cache.register) similar to functools.cache and supports arbitrary Python objects as inputs/outputs.
- The cache includes automatic invalidation when the source file of a cached function changes.
Source: alexwlchan.net, 2026-11-16
Published there as: “Funkycache: A Python library to cache functions in SQLite”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.