Skip to content

Commit ec114bc

Browse files
committed
passing ttl of 0 to lruCache, upgrading to lru-cache 4.0.0
1 parent 21c2121 commit ec114bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/stores/memory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var memoryStore = function(args) {
77
var ttl = args.ttl;
88
var lruOpts = {
99
max: args.max || 500,
10-
maxAge: ttl ? ttl * 1000 : null,
10+
maxAge: (ttl || ttl === 0) ? ttl * 1000 : null,
1111
dispose: args.dispose,
1212
length: args.length,
1313
stale: args.stale

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"license": "MIT",
2222
"dependencies": {
2323
"async": "^0.9.0",
24-
"lru-cache": "2.6.5"
24+
"lru-cache": "4.0.0"
2525
},
2626
"devDependencies": {
2727
"coveralls": "^2.3.0",

0 commit comments

Comments
 (0)