Browse Source

Merge branch 'master' into develop

feature/specify-what-to-cache
Bryan Donovan 10 years ago
parent
commit
33be3da1eb
  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