Design a cache whose eviction policy can be swapped — LRU today, LFU or FIFO tomorrow — and code the LRU strategy.
Design a cache whose eviction policy can be swapped — LRU today, LFU or FIFO tomorrow — and code the LRU strategy.
Opens with the full question.