nanolru

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

A simple O(1) LRU cache for Node.js, version 1.0.0 (stable). Forked from 'lru' to remove the dependency on 'events', providing a minimal, zero-dependency implementation. Supports set, get, peek, remove, and clear operations with configurable max size and optional max age for automatic eviction. Suitable for scenarios requiring a lightweight, fast LRU cache without external dependencies.