{"library":"ttl-cache","type":"library","category":null,"description":"Simple in-memory object cache with per-item TTL (time-to-live) expiry. Version 1.0.2 is the latest stable release, with infrequent updates. Key differentiators: lightweight, zero dependencies, simple API. Suitable for small-scale caching needs where a full-featured cache like node-cache or lru-cache is overkill.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","memory","cache","ttl","expiry"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ttl-cache","imports":["import TTLCache from 'ttl-cache'","import TTLCache from 'ttl-cache'","const cache = new TTLCache({ ttl: 60 }); cache.get('key'); cache.set('key', value);"]},{"cmd":"yarn add ttl-cache","imports":[]},{"cmd":"pnpm add ttl-cache","imports":[]}],"homepage":"https://github.com/norganna/node-ttl-cache","github":"git://github.com/norganna/node-ttl-cache","docs":null,"changelog":null,"pypi":null,"npm":"ttl-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}