{"library":"lru-cache-node","type":"library","category":null,"description":"A lightweight, high-performance LRU cache for Node.js using a doubly-linked list and hash map for O(1) get/set operations. Version 1.1.0 supports optional per-key expiry (TTL), returning stale values before eviction, and methods like peek, delete, has, forEach, and toArray. Compared to alternatives like lru-cache, lru-cache-node has a simpler API, lower overhead for small caches, and no external dependencies. It is suitable for minimal caching needs in Node.js applications.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","cache","lru","mru"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install lru-cache-node","imports":["const Cache = require('lru-cache-node');","import Cache from 'lru-cache-node';","const LRUCache = require('lru-cache-node').LRUCache;"]},{"cmd":"yarn add lru-cache-node","imports":[]},{"cmd":"pnpm add lru-cache-node","imports":[]}],"homepage":"https://github.com/arbazsiddiqui/lru-cache-node#readme","github":"https://github.com/arbazsiddiqui/lru-cache-node","docs":null,"changelog":null,"pypi":null,"npm":"lru-cache-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}