{"library":"map-cache-ttl","type":"library","category":null,"description":"A Map subclass with TTL-based expiration for caching in Node.js (v0.1.1). It extends ES6 Map with optional per-key max age and automatic or manual trimming of expired entries. Supports proxy wrapping for memoization of async functions with cached results. Lightweight, no external dependencies required (except object-hash for proxy). Ideal for simple in-memory caching with fine-grained control over expiration.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","map","cache","es6","expire","max_age","ttl","proxy"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install map-cache-ttl","imports":["const Cache = require('map-cache-ttl')","new Cache(maxAge, interval)","const proxy = cache.proxy(fn, maxAge)"]},{"cmd":"yarn add map-cache-ttl","imports":[]},{"cmd":"pnpm add map-cache-ttl","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"map-cache-ttl","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}