halfexpired-lru
lru-cache where get accepts an optional "fill" callback. A fill callback would be used to populate a value in the background before it is really expired. set also supports ttl per key.
example
var cache = ; cache; cache;
lru-cache where get accepts an optional "fill" callback. A fill callback would be used to populate a value in the background before it is really expired. set also supports ttl per key.
var cache = ; cache; cache;
npm i lru-halfexpired
3
0.0.2
BSD