⚙️Cache
Also known as Caching, Cached, Cache Hit, Cache Miss
A fast store of copies. The same data loads quicker next time.
Think of it like
Think of it like keeping your snacks on your desk. You do not walk to the kitchen each time.
Example
Emma's shop page asks the database for the same 20 best sellers on every visit. She caches the list for 5 minutes, and the page loads 10 times faster.
Why it matters
Definition
Common mistake
Key takeaways
- 1Keep a copy. Near where it is used.
- 2Hit or miss. Found, or fetched again.
- 3Copies go stale. Plan when to refresh.