Skip to main content

LRU Cache & Eviction Policies

Pair a hash map with a sentinel doubly-linked list for O(1) hits, updates, and least-recent eviction.

Open the lesson