← Anthropic questions

Thread-safe cache with configurable eviction policy

Filed under Anthropic

Design and implement a thread-safe in-memory cache with a configurable eviction policy. The cache has a fixed capacity and supports get(key) and put(key, value). When it is full and a new key is…

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 Anthropic questions

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