Cache
A fast, temporary store of frequently-used data to reduce latency and load.
A fast, temporary store of frequently-used data to reduce latency and load.
A cache keeps copies of expensive-to-compute or slow-to-fetch data close to where it’s needed. The hard parts are invalidation (keeping it fresh) and choosing a sensible time-to-live. A cache complements, but does not replace, your source-of-truth database.