Keeps what the server fetched from another site for a while, by key, so a page or a feed asking again doesn't refetch it: Bandcamp tracklists, YouTube playlists, and link previews. Each holder sets how long an entry lives and how many are kept; past that count, the oldest written goes first.

Classes

c
TtlCache<V>(
ttlMs: number,
maxEntries: number
)

A map whose entries expire ttlMs after they are written, holding maxEntries at most.