LRU Cache
A cache that evicts the least-recently-used value when it fills up.
An LRU cache holds a bounded set of values (often a hash table plus a doubly-linked list for ordering). On each access, the value moves to the end of the list — "recently used." When the cache fills, the value at the head — least recently used — gets evicted. A classical algorithm for keeping working sets small. Databases use LRU for buffer pools; CPUs use it for TLBs (translation lookaside buffers); CDNs use it for cached content. The catch: LRU assumes "recent = will be needed soon," which isn't always true (a full table scan touches a page once then never again). For some access patterns, LFU (least-frequently-used) or ARC (adaptive replacement cache) work better.