@@ -20,7 +20,7 @@ var multi_caching = function(caches) {
20
20
}
21
21
22
22
var i = 0 ;
23
- async . forEachSeries ( caches , function ( cache , async_cb ) {
23
+ async . eachSeries ( caches , function ( cache , async_cb ) {
24
24
var callback = function ( err , result ) {
25
25
if ( err ) {
26
26
return cb ( err ) ;
@@ -42,7 +42,7 @@ var multi_caching = function(caches) {
42
42
}
43
43
44
44
function set_in_multiple_caches ( caches , opts , cb ) {
45
- async . forEach ( caches , function ( cache , async_cb ) {
45
+ async . each ( caches , function ( cache , async_cb ) {
46
46
if ( typeof opts . options !== 'object' ) {
47
47
cache . store . set ( opts . key , opts . value , opts . ttl , async_cb ) ;
48
48
} else {
@@ -66,7 +66,7 @@ var multi_caching = function(caches) {
66
66
67
67
if ( result !== undefined && index ) {
68
68
var cachesToUpdate = caches . slice ( 0 , index ) ;
69
- async . forEach ( cachesToUpdate , function ( cache , async_cb ) {
69
+ async . each ( cachesToUpdate , function ( cache , async_cb ) {
70
70
cache . set ( key , result , result . ttl , async_cb ) ;
71
71
} ) ;
72
72
}
@@ -171,7 +171,7 @@ var multi_caching = function(caches) {
171
171
cb = options ;
172
172
options = false ;
173
173
}
174
- async . forEach ( caches , function ( cache , async_cb ) {
174
+ async . each ( caches , function ( cache , async_cb ) {
175
175
if ( typeof options === 'object' ) {
176
176
cache . store . del ( key , options , async_cb ) ;
177
177
} else {
0 commit comments