lru
LRU (Least Recently Used) Cache.
- single file
- browser✔
- Node.js✔
dependenciesbabelpolyfills
Installation
npm install --save llrruu
Usage
import
const LRU = ;
create
The module exported is both a constructor and a factory function. It accepts either a number or an object.
const lru1 = 10;const lru2 = ;const lru3 = ;
api
lru; // will affect the orderlru; // will affect the orderlru;lru;lru;lru;lrusize;lruclear;
License
MIT