Least Recently Used (LRU) is a cache eviction policy that, when a cache is full and a new entry must be added, removes the item that has not been accessed for the longest period of time. It operates on the principle of temporal locality, assuming that data accessed recently is likely to be needed again soon. Implementation typically uses a combination of a hash map for O(1) lookups and a doubly linked list to track access order, moving items to the front (most recent) on each access and evicting from the back (least recent).
