package
An LRU cache for node.js
npm install lrusedGitHub-flavored package documentation.
Across all versions, last 30 days.
6 in 30 days
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
3.7 kB
Includes dependencies.
A simple and efficient LRU cache for node.js.
npm install lrused(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 key and refreshes the cache entry.
set(< mixed >key, < mixed >value) - (void) - Adds or updates and refreshes the cache entry identified by key with the given value.