In-memory-cache Main thread ├─ handles insert() ├─ handles get() └─ owns cache object Cleanup thread ├─ sleeps for N seconds ├─ locks cache ├─ removes expired entries └─ repeats