Skip to content

Commit

Permalink
fix(cache-refresh): reset cache when it is expire
Browse files Browse the repository at this point in the history
  • Loading branch information
yilinfengluo committed Aug 7, 2017
1 parent a01554b commit ac0d98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cache.js
Expand Up @@ -77,7 +77,7 @@ class Cacher {
.tap((result) => {
if (!_.isUndefined(result)) {
const value = JSON.stringify(result);
self.client.set(saveKey, value, 'ex', expire);
self.client.set(saveKey, value, 'ex', expire, 'nx');
}
});
});
Expand Down

0 comments on commit ac0d98e

Please sign in to comment.