Problem 2622 · Medium

Cache With Time Limit

A key-value cache whose entries expire at a set time; set reports whether a live key was overwritten, get and count only see live entries.

Open the interactive visualisation