reliable-get
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -78,3 +78,5 @@ 'use strict'; | ||
if (arguments.length === 3) { return this.set(key, value, _ttl, function() {}); } | ||
if (arguments.length < 4) { | ||
next = function() {}; | ||
} | ||
@@ -90,3 +92,5 @@ var ttl = _ttl || oneMinute; | ||
}, function() { | ||
self._redisClient.expire(key, (ttl / 1000) * cleanupPeriod, next); | ||
self._redisClient.expire(key, (ttl / 1000) * cleanupPeriod, function() { | ||
next(null); | ||
}); | ||
}); | ||
@@ -93,0 +97,0 @@ |
{ | ||
"name": "reliable-get", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "A circuit breaker and cached wrapper for GET requests (enables reliable external service interaction).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
49085
1038