{"library":"tmp-cache","type":"library","category":null,"description":"A minimal least-recently-used (LRU) cache implementation in about 35 lines of code, extending the native Map class. At version 1.1.0 (latest), it supports configurable max size, per-item or global maxAge for expiration, and a stale option to return expired values before deletion. Released steadily since 2017, it has zero dependencies and ships TypeScript type declarations. Compared to heavier alternatives like lru-cache, tmp-cache prioritizes simplicity and small bundle size, making it suitable for lightweight caching in Node.js (>=6) or modern browsers.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","cache","lru","lru-cache","mru","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install tmp-cache","imports":["import Cache from 'tmp-cache'","const Cache = require('tmp-cache')","import type { Cache } from 'tmp-cache'"]},{"cmd":"yarn add tmp-cache","imports":[]},{"cmd":"pnpm add tmp-cache","imports":[]}],"homepage":"https://github.com/lukeed/tmp-cache#readme","github":"https://github.com/lukeed/tmp-cache","docs":null,"changelog":null,"pypi":null,"npm":"tmp-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}