Nepedia
Back to Discover
Independent Reader
💻

Cache (computing)

technology Maturity 7-9 Next article →

A computer uses a special tool to work faster. We call this a cache.

cache,basic
cache,basic

A cache is a small part of hardware or software. It stores copies of data. This helps the computer find things quickly later.

When a computer needs data, it checks the cache first. If it finds the data, this is a cache hit. A hit is very fast. If it cannot find the data, it is a cache miss. A miss means the computer must look in a slower place. This takes more time. After a miss, the computer often copies the data into the cache.

Write-through with no-write-allocation
Write-through with no-write-allocation

Caches are small because big ones are slow. Large parts take more time for signals to travel. To make room, the cache must sometimes remove old data. One way to do this is the least recently used policy. This rule removes the data that has not been used for the longest time.

Write-back with write-allocation
Write-back with write-allocation

There are also different ways to write new data. In a write-through cache, data is saved to both the cache and the main store at once. In a write-back cache, the computer waits to save the data until later. This can make the system even faster.

200 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:cache,basic.svg
cache,basic.svg
File:Write-through with no-write-allocation.svg
Write-through with no-write-allocation.svg
File:Write-back with write-allocation.svg
Write-back with write-allocation.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.