LRU
Least Recently Used (LRU) is a cache eviction policy that discards the least recently accessed item when the cache is full. The core idea is to keep track of the order in which items are used so that those not accessed for the longest time can be removed first.
In practice, an efficient LRU cache is typically implemented with a hash map and a doubly linked
LRU is widely used in hardware and software caches, including CPU instruction and data caches, operating system
Limitations of LRU include its sensitivity to workload patterns. If a working set exceeds the cache capacity,