lru-queue is a low-level LRU (Least Recently Used) queue implementation originally derived from the memoizee package. Current stable version is 0.1.0. It provides a size-limited queue with hit, delete, and clear operations. It is used internally by memoizee for cache size limiting. The package is minimal, production-driven, with no dependencies and a focus on Node.js and browser usage via bundlers. Release cadence is low as it is stable and small. It differentiates by being a simple, focused utility rather than a full cache solution.
npm install lru-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates the three methods: hit, delete, and clear on an LRU queue with a limit of 3.
Use require or configure bundler to handle CJS.
Check the return value, but do not rely on it always being defined.
Use bracket notation or call it as a method on the queue object (it is safe in most modern JS environments).
Switch to a more feature-rich LRU library if additional functionality is needed.
Use require: var lruQueue = require('lru-queue');Run 'npm install lru-queue' and ensure the import is correct.
No dependency data recorded yet.