Python Interview Questions

6,382 python interview questions shared by candidates

Implement local in-memory cache util that uses LRU as an eviction algorithm and works in a multithreaded environment. LRU means evicting the item that hasn’t been accessed the longest in case the cache is full. Each item should also hold a TTL and return Null when trying to fetch an item that its TTL passed. In addition, the cache should be limited in size. The perfomance (get, set) should be in optimal time.
avatar

Python Developer

Interviewed at Varonis Systems

4
Aug 10, 2023

Implement local in-memory cache util that uses LRU as an eviction algorithm and works in a multithreaded environment. LRU means evicting the item that hasn’t been accessed the longest in case the cache is full. Each item should also hold a TTL and return Null when trying to fetch an item that its TTL passed. In addition, the cache should be limited in size. The perfomance (get, set) should be in optimal time.

Viewing 801 - 810 interview questions

Glassdoor has 6,382 interview questions and reports from Python interviews. Prepare for your interview. Get hired. Love your job.