← Questions

Key-value cache with per-entry TTL

0
NetflixCodingLast asked Nov 2026

A coding interview question asked in Netflix's technical phone screen, last asked Nov 2026. It tests caching, ttl and hash maps.

Implement an in-memory key-value cache where every write gives a key, a value and a time-to-live. Once an entry's time is up it must behave as if it was never written.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Netflix · Technical phone screen · Last asked Nov 202660 min · Coding, practical problem solving, or SQL and pipeline design, depending on the org

What it tests

caching · ttl · hash maps · heaps

Your code and the AI tutor open when you unlock this question.