Browse Source

passing ttl of 0 to lruCache, upgrading to lru-cache 4.0.0

feature/remove-domains
Bryan Donovan 9 years ago
parent
commit
ec114bcb74
  1. 2
      lib/stores/memory.js
  2. 2
      package.json

2
lib/stores/memory.js

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

2
package.json

@ -21,7 +21,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"async": "^0.9.0", "async": "^0.9.0",
"lru-cache": "2.6.5" "lru-cache": "4.0.0"
}, },
"devDependencies": { "devDependencies": {
"coveralls": "^2.3.0", "coveralls": "^2.3.0",

Loading…
Cancel
Save