Design a Configurable Cache
Design a configurable cache system that supports pluggable eviction policies (e.g., LRU, LFU) and interchangeable storage backends (e.g., in-memory, filesystem, heap, stack).
Asked at:
Amazon
Design a configurable cache system that supports pluggable eviction policies (e.g., LRU, LFU) and interchangeable storage backends (e.g., in-memory, filesystem, heap, stack).