Why it matters
Response cache is baseline for LLM ops. Understanding shapes cost.
Advertisement
The architecture
Hash prompt + params.
Redis / KV store lookup.
Return if hit.
Miss: call LLM + store.
Advertisement
How it works end to end
Include model, temperature, tools in key.
TTL per response.
Best for deterministic (temp=0).
Cache-Control headers.