โ† Microsoft questions
Low-Level DesignReported in a candidate post, Jul 2025

Design a thread-safe cache with TTL

Filed under Microsoft

The question

Design a simple cache storing a limited number of pages supporting O(1) query time, multi-user concurrency, and a timer starting at cache miss to mark entries stale after time T.

No write-up yet. Related questions below have one.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.