DELAPARRA
Index
Color
NL
Category: Core glossary

Cache

Explained by Updated

What is Cache?

Cache: A temporary storage layer that keeps copies of frequently accessed data so future requests can be served faster. Pronounced /kæʃ/ ("cash"), not "catch". A cache keeps a copy of data that is expensive to fetch or calculate, so the next request can be answered faster. It sits between your code and the slower source, such as a database or an external API.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Cache

How is Cache used in practice?

Caching happens at many levels: the browser caches images, a CDN caches pages, your application caches query results in Redis, and the database caches data in memory. Each layer saves time for the one behind it.

What should you keep in mind with Cache?

The hard part is knowing when cached data is outdated. Decide how stale data may be, set an expiry time, and clear the cache when the source changes. A cache that serves wrong prices after an update causes more trouble than a slow page. And the word is pronounced "cash".

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with C

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.