Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 259 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 259 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"

RTFS for more info.