Cache (Upstash Redis, ephemeral patterns)
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun run patterns:build.
Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.
Category: Databases & Storage · Tier: light · Risk: medium — external managed service (Upstash Redis)
In-memory key-value store on Upstash Redis, reached over HTTP REST, used for rate limiting, the circuit breaker, and other ephemeral counters.
When to use: Use when a feature needs fast, short-lived state, such as counters or locks, without Postgres's durability guarantees.
Docs
Code
Proof
Machine-readable record: databases-cache in mcp/patterns.registry.json.