{"library":"ttl-mem-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","cache","memcache","memory cache","ttl","time to live","performance","expire cache","expiring"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ttl-mem-cache","imports":["import Cache from 'ttl-mem-cache';","const Cache = require('ttl-mem-cache');","import Cache from 'ttl-mem-cache';"]},{"cmd":"yarn add ttl-mem-cache","imports":[]},{"cmd":"pnpm add ttl-mem-cache","imports":[]}],"homepage":"https://github.com/trygve-lie/ttl-mem-cache#readme","github":"ssh://git@github.com/trygve-lie/ttl-mem-cache","docs":null,"changelog":null,"pypi":null,"npm":"ttl-mem-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}