A map whose entries expire ttlMs after they are written, holding
maxEntries at most.
clear(): void
Empties the cache, for the tests' reset between cases.
Removes key, or only when value is still what it holds, so a late
failure can't remove the entry that replaced its own.