Caching bugs are invalidation bugs. This forces the model to write the invalidation rules first.
The prompt is below. Replace the parts in [square brackets] with your own details.
Posted November 23, 2026
We want to cache expensive result in store.
Before any code, write down: the exact cache key, the events that make an entry wrong, and the maximum staleness users can tolerate.
The rest is locked · 4 more lines
A free account unlocks 5 prompts a month in full, with the blanks to fill in and copy. Members read every prompt.
Caching bugs are invalidation bugs. This forces the model to write the invalidation rules first.
The prompt is below. Replace the parts in [square brackets] with your own details.
4 views · 0 replies
Sign in or create a free account to reply. It costs nothing.
Already a member? Sign in