Install
lru-cache
A cache object that deletes the least-recently-used items.
11.5.4Latest, 29 Nov 2026
3.5BDownloads, last month
0Advisories on the latest
0Advisories, all versions
BlueOak-1.0.0Licence
5.9KStars
4.1/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
In the news
- LRU Cache (LeetCode 146) Design in Python and Java dev.to, 3 Dec 2026
- Decode Once, Keep What Fits: a Byte-Budget LRU Cache for Web Audio Buffers, With Tests for In-Flight Loads, Pinned Clips and Failed Fetches dev.to, 23 Nov 2026
- Why Pure LRU Cache Eviction Fails Under Scan Workloads (And How W-TinyLFU Fixes It) dev.to, 23 Nov 2026
- Your Hand-Rolled LRU Cache Is One Edge Case Away from a Memory Leak dev.to, 8 Nov 2026
- LeetCode Solution: 146. LRU Cache dev.to, 17 May 2026
On Hacker News
- Speeding up function calls with lru_cache in Python 125 points, 79 comments, 28 Jun 2020
- Show HN: A LRU cache using go generics 57 points, 11 comments, 12 Jan 2022
- Sparse File LRU Cache 52 points, 11 comments, 1 Feb 2026
- Show HN: A header only C++11 LRU Cache template class, with no dependencies 29 points, 27 comments, 30 Aug 2016
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.