54c6e688a8ee7aeec7d070201f596f285801c49f.svn-base
300 Bytes
# 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"
cache.reset() // empty the cache
RTFS for more info.