cache-memory
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -10,3 +10,3 @@ 'use strict' | ||
var defaultStoreUndefinedObjects = false; | ||
var timeoutId; | ||
var intervalId; | ||
@@ -100,7 +100,7 @@ function getCachers() { | ||
cleanup: (seconds) => { | ||
if (timeoutId) { | ||
clearTimeout(timeoutId); | ||
if (intervalId) { | ||
clearInterval(intervalId); | ||
} | ||
timeoutId = setTimeout(() => { | ||
intervalId = setInterval(() => { | ||
logger.log(`cleaning up expired keys`); | ||
@@ -107,0 +107,0 @@ let count = 0; |
{ | ||
"name": "cache-memory", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
38110
12
840