node-lfu-cache
JSON →A least-frequently-used (LFU) cache for Node.js, directly ported from lru-cache but using an LFU eviction algorithm based on the paper by Dhruv Bird. Current version 5.0.0 provides a configurable cache with options for max size, item length calculation, maxAge, dispose callbacks, stale returns, and noDisposeOnSet. The API includes set, get, peek, del, reset, has, and forEach. Unlike LRU caches, which evict least-recently-used items, this cache evicts least-frequently-used items, making it suitable for workloads where access frequency matters more than recency.
Traffic · last 30 days stale · no recent hits
total hits 13
actors 4 distinct systems
last hit 16d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · PH · BG · 🇨🇦 Canada
Resources
packagenode-lfu-cache ↗