← Goldman Sachs questions
Low-Level DesignReported in a candidate post, Sep 2025

Implement a TTL-based cache

Filed under Goldman Sachs

Implement a cache with time-to-live (TTL) expiry: put(key, value, ttl), get(key) that returns nothing once the entry has expired, and a way to remove expired entries.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

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