ttl-lru-cache - A fast in memory cache with TTL and LRU support
Installation
npm install ttl-lru-cache
Usage
var cache = maxLength: 100 ; cache; var a = cache; // a = 'Hello' // TTL Examplecache; // Add TTL in msvar b = cache;// b = 'Hello' ;
Benchmark against lru-cache
npm install
make bench
Credits
Paul Serby follow me on twitter @serby
Licence
Licenced under the New BSD License