g14o
Packages@g14o/cache

Deployment

Choose a cache store for your hosting environment.

Shared caching across instances needs a remote store. Pick one that matches where your server runs. Wiring examples live on Setup.

Pick a store

EnvironmentStoreWhy
Local / single processIn-memory (implicit or explicit)Per-process — not shared across replicas
Serverless / edge (Vercel, Lambda, Workers)upstashStoreREST via @upstash/redis — no persistent TCP
Always-on Node (Express, Hono, Fastify, Nest, Docker/K8s)redisStoreTCP via node-redis / ioredis

The legacy redis: { url, token } option wraps upstashStore internally. Prefer store: upstashStore(...) for new projects.

Cost

Upstash bills per command — a good fit for low or spiky traffic. Self-hosted or always-on Redis is mostly fixed cost and often wins at sustained high load. See Upstash Redis pricing for current plans.

Dev and build fallbacks

When no store is configured, development, test, and static build phases use an in-memory backend automatically. Production requires an explicit store. See Setup for configuration.

On this page