Skip to content
A simple LRU cache for node
JavaScript Perl
Pull request Compare This branch is 48 commits behind chriso:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package.json
vows

README.md

A simple LRU cache supporting O(1) set, get and eviction of old keys

Installation

$ npm install lru

Usage

var LRU = require('lru').LRU;

var cache = new LRU(10);

cache.set('foo', 'bar');
cache.get('foo'); //=> bar

Credits

A big thanks to Dusty Leary who finished the library.

Something went wrong with that request. Please try again.