ee-lru-cache

LRU Memory Cache ( last recent used )

npm install ee-lru-cache
1 downloads in the last day
5 downloads in the last week
10 downloads in the last month

ee-lru

LRU Memory Cache ( last recent used )

var cahce = new LRUCache( {
      limit: 100000      // max number of items
    , ttl: 3600000         // 1h ( remove items not accessed in the last hour )
} );




cache.set( "someId", { some: "data" } );

cache.get( "someId" ); // { some: "data" }

cache.has( "someId" ); // true

cache.remove( "someId" );
npm loves you