Caching
The process of storing copies of data in a temporary storage location so that they can be accessed more quickly.
🌐 Terms in other languages:
Caching works on a simple principle: doing the work once and remembering the result. When a computer performs a task (like fetching data from a slow database or calculating a complex formula), it stores the result in a fast 'cache' (like RAM). The next time it needs that data, it just grabs it from the cache instantly.
graph LR
Center["Caching"]:::main
Rel_file_systems["file-systems"]:::related -.-> Center
click Rel_file_systems "/terms/file-systems"
Rel_cpu_cache["cpu-cache"]:::related -.-> Center
click Rel_cpu_cache "/terms/cpu-cache"
Rel_cache["cache"]:::related -.-> Center
click Rel_cache "/terms/cache"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Knowledge Check
1 / 5
🧒 Explain Like I'm 5
Caching is like writing down a phone number on a sticky note and putting it on your computer screen. Instead of having to go to the other room and look through a giant phone book every time you want to call that person, you can just look at the note and dial the number immediately.