gitmyhub

TTL-MAP-ARRAY

★ 0 updated 2mo ago ⑂ fork

A JavaScript class that combines the features of both an Array and a Map, with built-in support for Time-To-Live (TTL) expiration of items. Each item can have an optional TTL after which it is automatically removed from the collection, and an optional callback can be triggered on expiration.

No plain-English explanation yet — one is being written right now. Check back in a minute.