{"library":"ttl","type":"library","category":null,"description":"Simple in-memory cache with TTL and capacity for JavaScript. Version 1.3.1 is the current stable release, with infrequent updates. It provides a lightweight cache with optional time-to-live per entry, capacity-limited eviction, and events for put, del, drop, hit, and miss. Differentiates from similar libraries (e.g., node-cache) by its simple API and event-driven architecture. Designed for Node.js environments, with no external dependencies.","language":"javascript","status":"active","version":"1.3.1","tags":["javascript","cache","caching","memory","in-memory","ttl"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install ttl","imports":["const Cache = require('ttl');","import Cache from 'ttl';","const { default: Cache } = await import('ttl');"]},{"cmd":"yarn add ttl","imports":[]},{"cmd":"pnpm add ttl","imports":[]}],"homepage":"https://github.com/mrhooray/ttl","github":"https://github.com/mrhooray/ttl","docs":null,"changelog":null,"pypi":null,"npm":"ttl","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}