{"library":"quick-lru-ts","type":"library","category":null,"description":"A simple Least Recently Used (LRU) cache implementation in TypeScript. Version 1.0.0 wraps sindresorhus/quick-lru with TypeScript declarations. It uses a Map internally for O(1) operations and supports keys of any type, including objects and symbols. Key features include configurable maxSize and maxAge (with per-item TTL), an onEviction callback for cleanup, and multiple iteration methods (keys, values, entriesAscending, entriesDescending). Compared to lru-cache or tiny-lru, quick-lru-ts focuses on simplicity and minimal API surface. The package is ESM-only, requires Node.js >=12, and is stable with no breaking changes expected. It is actively maintained as a TypeScript conversion of the original quick-lru.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","lru","quick","cache","caching","least","recently","used","fast"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install quick-lru-ts","imports":["import { QuickLRU } from 'quick-lru-ts'","import QuickLRU from 'quick-lru-ts'","import type { QuickLRUOptions } from 'quick-lru-ts'"]},{"cmd":"yarn add quick-lru-ts","imports":[]},{"cmd":"pnpm add quick-lru-ts","imports":[]}],"homepage":"https://github.com/greguintow/quick-lru-ts#readme","github":"https://github.com/greguintow/quick-lru-ts","docs":null,"changelog":null,"pypi":null,"npm":"quick-lru-ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}