Comparing version 0.3.0 to 0.4.0
@@ -39,5 +39,7 @@ 'use strict'; | ||
const timestamp = typeof opts.maxAge === 'number' ? Date.now() + opts.maxAge : undefined; | ||
Object.keys(key).forEach(k => { | ||
super.set(k, { | ||
timestamp: opts.maxAge && Date.now() + opts.maxAge, | ||
timestamp, | ||
version: this.version, | ||
@@ -49,3 +51,3 @@ data: key[k] | ||
super.set(key, { | ||
timestamp: opts.maxAge && Date.now() + opts.maxAge, | ||
timestamp: typeof opts.maxAge === 'number' ? Date.now() + opts.maxAge : undefined, | ||
version: this.version, | ||
@@ -52,0 +54,0 @@ data: val |
{ | ||
"name": "cache-conf", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Simple cache config handling for your app or module", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
5211
63