lru.min
Why another LRU?
Install
# Node.js
npm i lru.min# Bun
bun add lru.min# Deno
deno add npm:lru.minUsage
Quickstart
Import
ES Modules
CommonJS
Browser
Create a new LRU Cache
Set a cache
Get a cache
Peek a cache
Check if a key exists
Delete a cache
Evict from the oldest cache
Resize the cache
Clear the cache
Debugging
Get the max size of the cache
Get the current size of the cache
Get the available slots in the cache
Iterating the cache
Get all keys
Get all values
Get all entries
Run a callback for each entry
TypeScript
Performance
Security Policy
Contributing
Acknowledgements
What comes from lru-cache?
What comes from quick-lru?
License
Last updated