blob: 1f5f155b7f1b92bc959f2cbc54df57dff2cba2c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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.
|