Browse Source

Merge pull request #22 from gmaclennan/patch-1

Pass dispose, length & stale options to lru-cache
feature/specify-what-to-cache
Bryan Donovan 10 years ago
parent
commit
85fb268637
  1. 5
      lib/stores/memory.js

5
lib/stores/memory.js

@ -7,7 +7,10 @@ var memoryStore = function(args) {
var ttl = args.ttl;
var lruOpts = {
max: args.max || 500,
maxAge: ttl ? ttl * 1000 : null
maxAge: ttl ? ttl * 1000 : null,
dispose: args.dispose,
length: args.length,
stale: args.stale
};
var lruCache = new Lru(lruOpts);

Loading…
Cancel
Save