Skip to content

Commit 62f3d4f

Browse files
author
Scott Taylor
committed
Update to set higher priority caches when determined from lower priority key for single key access
1 parent 673ebec commit 62f3d4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/multi_caching.js

+3
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ var multiCaching = function(caches, options) {
129129
}
130130
} else if (_isCacheableValue(result)) {
131131
// break out of async loop.
132+
for (let j = 0; j < i; i++) {
133+
caches[j].store.set(keys, result);
134+
}
132135
return cb(err, result, i);
133136
}
134137

0 commit comments

Comments
 (0)