Guides
Configuration
Tune caching, regions, and retries with the config object.
Every option has a sensible default. Override only what you need, either in code or in quanta.config.ts.
ts
export default defineConfig({
region: "auto", // or "us-east", "eu-west"
cache: "swr", // "swr" | "none" | "strong"
retries: 3,
timeoutMs: 5000,
});Caching modes
swr— serve stale, revalidate in the background (default)strong— always read the freshest valuenone— bypass the cache entirely
Caching is per-collection too — pass a cache option to any read to override the global setting.