Object-Oriented Programming · Netflix · Medium
Problem: Build an In-Memory Cache with a Capacity Limit and Eviction Create an in-process (in-memory) cache that removes entries once it is full. You should also be prepared to explain how the cache can avoid unlimited memory use and how the approach might expand in scale (discussion only; implementing a distributed cache is not required). Functional Requirements Provide these APIs: get(key) -> value None When the key is present (and has not expired, if expiration is…
Checking your access…