{"library":"receptacle","type":"library","category":null,"description":"In-memory LRU cache with TTL support for Node.js and browsers. Current stable version is 1.3.2, released under an MIT license with a stable API. It provides a simple API similar to Map but with LRU eviction and per-key TTL, optional refresh on access, and built-in serialization/deserialization to JSON. Differentiates from libraries like lru-cache by its smaller footprint, TypeScript type definitions, and more straightforward API without external dependencies.","language":"javascript","status":"active","version":"1.3.2","tags":["javascript","cache","expires","lru","map","memory","receptacle","ttl","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install receptacle","imports":["import Receptacle from 'receptacle'","const Receptacle = require('receptacle')","import Receptacle from 'receptacle'"]},{"cmd":"yarn add receptacle","imports":[]},{"cmd":"pnpm add receptacle","imports":[]}],"homepage":"https://github.com/DylanPiercey/receptacle","github":"https://github.com/DylanPiercey/receptacle","docs":null,"changelog":null,"pypi":null,"npm":"receptacle","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}