Reason about a caching correctness problem
Work out where stale data can appear and what it would cost.
What this prompt helps you do
The staleness windows, their user-visible consequences, and an invalidation strategy with its trade-offs.
When to use it
A cache is being introduced or is serving data that is sometimes wrong.
What to prepare
The goal, relevant source material, constraints, examples, and the decision or action this should support.
How to get a strong result
Identify what must never be stale; correctness requirements differ per field and a blanket TTL ignores that.
How to use this prompt
Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.