Open source · MIT License

Python caching built
for FastAPI

Redis-backed cache with automatic invalidation, optional vector-search helpers, multi-backend routing, and metrics — without bolting on a separate doc stack.

$ 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.

FastAPI-first

Decorators and dependencies that fit existing endpoints without rewriting your app around the cache.

Multi-backend

Redis, Memcached, memory, disk, and SQLite paths with a consistent configuration model.

Resilience

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

HTTP caching

ETag and Cache-Control middleware for 304-friendly APIs when you want browser and CDN behavior aligned.

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 →
Usage patterns and FastAPI Usage patterns → · FastAPI →
Python API Generated API docs (pdoc) →
Releases Changelog →