node/deps/npm/node_modules/lru-cache
isaacs bb9316da28 npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00
..
lib npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00
.npmignore npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00
LICENSE npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00
README.md npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00
package.json npm 1.1.0-beta-2 2011-12-14 14:17:16 -08:00

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.