Back to browse
GitHub Repository

Freshness-first caching library for Python

0 starsPython

Experimental freshness-first caching library for FastAPI

by grandimam·Jul 23, 2026·1 point·0 comments

AI Analysis

MidShip It

Background sweeper refreshes hot cache entries before expiry, but the API is still experimental.

Strengths
  • Coalesces concurrent cache misses into a single recomputation to prevent thundering herds.
  • Exposes /zinda/stats endpoint showing hit rates, stale serves, and refresh errors instantly.
  • Middleware option caches entire HTTP responses without modifying individual endpoint code.
Weaknesses
  • README explicitly warns against production use while core ideas are still being validated.
  • Competes with mature alternatives like Redis, Cachetools, and FastAPI-Cache that are stable.
Target Audience

Python backend developers using FastAPI

Similar To

FastAPI-Cache · Cachetools · Redis

Post Description

Hi folk,

I am working on a small experimental freshness-first caching library and wanted some design feedback. before i take it further.

Instead of wiring up invalidations by hand, the cache would watch your function by hand and cache should automatically infer the behavior and keep the data fresh.

Code: https://github.com/grandimam/zinda

Similar Projects