Cache Snack Counter
The kitchen is slow. The counter is quick. Keep the right snacks close, and don't serve yesterday's recipe. Three little shifts, zero actual rushing.
Shift 1 · Order 1 of 8
One snack, please.
Cinnamon bun
Recipe v1
Kitchen = 4 effort · Cached copy = 1 effort
First order! Fetch it from the kitchen to stock your first tray.
0 effort
0 cache hits
0 kitchen trips
Target: 20 or less
Small counter. Familiar computer problems.
How to play (and what the score means)
Serve eight orders with as little effort as possible. Use a tray when its snack and recipe match the ticket. Otherwise fetch from the kitchen. A wrong snack or old recipe costs 2 effort, but the same customer waits so you can try again. There is no clock. Targets are the best possible scores for these fixed queues.
Why does a snack disappear?
The counter holds three different snacks. When a fourth arrives, the least recently used copy leaves. Look for “next to leave” under its tray. Fetching or serving a snack makes it the most recently used. This is LRU eviction, the same idea used in many software caches.
What's wrong with an old recipe?
A cached copy can survive after the original changes. Shift 3 changes the cinnamon bun recipe. The old copy is still there, but it no longer matches. Clear old recipes for free or fetch the new version when needed. That's cache invalidation. Real caches can also expire on a timer; this one uses explicit recipe versions instead.