Simple LRU cache. put and get.
Suitable for use in browsers and Node.js.
Install
$ npm install --save tiny-lru-cache
Usage
var LRUCache = ; var maxSize = 100;var cache = maxSize;cache;cache; // returns 'value' cache; // Empties the cache
LRU Eviction Policy
Once the cache reaches its maximum size, the least recently used (LRU) item is evicted.
Development
npm installnpm test
License
MIT © Andy Hume