We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c2121 commit ec114bcCopy full SHA for ec114bc
lib/stores/memory.js
@@ -7,7 +7,7 @@ var memoryStore = function(args) {
7
var ttl = args.ttl;
8
var lruOpts = {
9
max: args.max || 500,
10
- maxAge: ttl ? ttl * 1000 : null,
+ maxAge: (ttl || ttl === 0) ? ttl * 1000 : null,
11
dispose: args.dispose,
12
length: args.length,
13
stale: args.stale
package.json
@@ -21,7 +21,7 @@
21
"license": "MIT",
22
"dependencies": {
23
"async": "^0.9.0",
24
- "lru-cache": "2.6.5"
+ "lru-cache": "4.0.0"
25
},
26
"devDependencies": {
27
"coveralls": "^2.3.0",
0 commit comments