Package Exports
- lru
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lru) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A simple LRU cache supporting O(1) set, get and eviction of old keys
Installation
$ npm install lruUsage
var LRU = require('lru').LRU;
var cache = new LRU(10);
cache.set('foo', 'bar');
cache.get('foo'); //=> bar