Cachen
Cachen, or caching, is the process of storing copies of data in a faster storage layer closer to the user to speed up subsequent requests. Serving data from the cache reduces latency and load on slower back-end resources. Caching is used across hardware and software, in networks and applications. The central challenge is maintaining data freshness: cached data may become stale if the original source changes.
Caches use eviction policies to make room for newer data, such as least recently used (LRU) or
Caches exist in many forms. CPU caches (L1/L2/L3) store instructions and data close to the processor. The
Benefits include lower latency, higher throughput, and reduced database or disk contention. Drawbacks include the risk
Design choices include cache size, eviction policy, data granularity, and consistency requirements. See also caching policies,