TTLs and quotas configured at runtime via KV
Cache-namespace defaults read $config.<path> so you tune them without redeploys.
A cache namespace reads its default TTL and capacity hints from KV at runtime. Operations team adjusts a single key during an incident — every CACHE PUT after that picks up the new value. No app rebuild, no Helm chart edit, no deploy.
sql
-- Knobs live in KV (engine config namespace).
SET CONFIG acme.cache.sessions.defaultTtlMs = 3600000;
SET CONFIG acme.cache.sessions.maxBytes = 268435456;
-- Cache writes pull TTL from config.
CACHE PUT sessions $session_id $blob
WITH TTL $config.acme.cache.sessions.defaultTtlMs ms
TAGS [$user_tag];
-- Tune during an incident. No rebuild.
SET CONFIG acme.cache.sessions.defaultTtlMs = 600000;