Open source · MIT License
v1.0.1

One cache API,
your choice of backend

Async-first across memory, Redis, Memcached, disk, and SQLite — same invalidation and patterns. Sync helpers when you are not in an async app. Optional HTTP caching, FastAPI decorators, metrics, CLI.

$ pip install yokedcache
From Project Yoked Production-oriented defaults and clear operational hooks

Auto-invalidation

Tag-aware invalidation and dependency-friendly patterns so stale reads are the exception, not the rule.

Multi-backend

Redis, Memcached, in-process memory, disk, and SQLite share one interface — swap stores without rewriting call sites.

Fits async and sync

Use await in FastAPI, Starlette, Django async, and workers. For blocking code, get_sync / set_sync or @cached on a normal function.

Resilience

Circuit breaker, retries, and stale-if-error style patterns to degrade gracefully under pressure.

HTTP caching

Starlette ASGI middleware for ETag and Cache-Control — 304-friendly responses when you enable the web extra.

Observability

Prometheus and StatsD hooks plus OpenTelemetry-friendly tracing for cache spans.

Vector helpers

Optional similarity and vector workflows when your stack needs semantic-style cache keys.

CLI

Inspect keys, stats, and health from the terminal for debugging and on-call.

Documentation

TopicLink
Install and first run Getting started →
Patterns, backends, FastAPI Usage patterns → · Backends → · FastAPI →
Python API API reference (pdoc: modules & types from docstrings) →
Releases Changelog →

Search documentation

Type to search. Fuzzy matching handles typos.