Comparing version
@@ -47,3 +47,3 @@ 'use strict'; | ||
return this.cache[key] = { | ||
this.cache[key] = { | ||
timeout: setTimeout(this._remove(key),time), | ||
@@ -54,2 +54,4 @@ time: time, | ||
}; | ||
return this.cache[key].value; | ||
}; | ||
@@ -56,0 +58,0 @@ |
{ | ||
"name": "cache-io", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Memory cache for node js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4743
0.59%121
0.83%