lrused
v0.0.1
Published
An LRU cache for node.js
Readme
Description
A simple and efficient LRU cache for node.js.
Installation
npm install lrusedAPI
(constructor)(< integer >capacity) - Creates and returns a new LRU cache instance with the given maximum capacity.
get(< mixed >key) - mixed - Returns the cached data identified by
keyand refreshes the cache entry.set(< mixed >key, < mixed >value) - (void) - Adds or updates and refreshes the cache entry identified by
keywith the givenvalue.
