ttl-mem-cache
JSON →An in-memory TTL key/value cache with streaming support. Current stable version is 4.1.0. It does not proactively prune expired items; instead, items expire when touched, avoiding setTimeout overhead. There is no maximum item limit, making it suitable for small to medium datasets. Key differentiators include per-item TTL, stale data delivery option, change event streaming via a Duplex stream, and an optional instance ID for origin tracking. It is a Node.js-only library, not browser-compatible.
Resources
packagettl-mem-cache ↗