mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 20:02:04 +00:00
.. | ||
lib | ||
.npmignore | ||
LICENSE | ||
package.json | ||
README.md |
lru cache
A cache object that deletes the least-recently-used items.
Usage:
var LRU = require("lru-cache")
, cache = LRU(10) // max 10 items. default = Infinity
cache.set("key", "value")
cache.get("key") // "value"
RTFS for more info.