|
|
@ -20,7 +20,7 @@ var multi_caching = function(caches) { |
|
|
|
} |
|
|
|
|
|
|
|
var i = 0; |
|
|
|
async.forEachSeries(caches, function(cache, async_cb) { |
|
|
|
async.eachSeries(caches, function(cache, async_cb) { |
|
|
|
var callback = function(err, result) { |
|
|
|
if (err) { |
|
|
|
return cb(err); |
|
|
@ -42,7 +42,7 @@ var multi_caching = function(caches) { |
|
|
|
} |
|
|
|
|
|
|
|
function set_in_multiple_caches(caches, opts, cb) { |
|
|
|
async.forEach(caches, function(cache, async_cb) { |
|
|
|
async.each(caches, function(cache, async_cb) { |
|
|
|
if (typeof opts.options !== 'object') { |
|
|
|
cache.store.set(opts.key, opts.value, opts.ttl, async_cb); |
|
|
|
} else { |
|
|
@ -66,7 +66,7 @@ var multi_caching = function(caches) { |
|
|
|
|
|
|
|
if (result !== undefined && index) { |
|
|
|
var cachesToUpdate = caches.slice(0, index); |
|
|
|
async.forEach(cachesToUpdate, function(cache, async_cb) { |
|
|
|
async.each(cachesToUpdate, function(cache, async_cb) { |
|
|
|
cache.set(key, result, result.ttl, async_cb); |
|
|
|
}); |
|
|
|
} |
|
|
@ -171,7 +171,7 @@ var multi_caching = function(caches) { |
|
|
|
cb = options; |
|
|
|
options = false; |
|
|
|
} |
|
|
|
async.forEach(caches, function(cache, async_cb) { |
|
|
|
async.each(caches, function(cache, async_cb) { |
|
|
|
if (typeof options === 'object') { |
|
|
|
cache.store.del(key, options, async_cb); |
|
|
|
} else { |
|
|
|