Caching

Add a caching layer to your self-hosted c15t backend for production performance.

The backend includes a caching layer for frequently accessed data like GVL (Global Vendor List) lookups and custom server-side translations. By default, an in-memory cache is used — suitable for single-instance deployments. For production with multiple instances, plug in Redis or Cloudflare KV so all instances share the same cache.

In-Memory (Default)

No configuration needed. The default memory cache has a 5-minute TTL and is suitable for development and single-instance deployments.

Upstash Redis

If you already have an Upstash Redis client, pass it directly:

Cloudflare KV

For Cloudflare Workers deployments:

Custom Cache Adapter

Implement the CacheAdapter interface to use any cache backend: