Skip to content

Commit

Permalink
fix: 🐛 set a default caching expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Jul 16, 2021
1 parent 57b4c4b commit 173f34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = class {
hashedEdgeIDs[i],
JSON.stringify(groupedQueryResult[hashedEdgeIDs[i]]),
'EX',
process.env.REDIS_KEY_EXPIRE_TIME,
process.env.REDIS_KEY_EXPIRE_TIME || 600,
);
}
debug('Successfully cached all query results.');
Expand Down

0 comments on commit 173f34b

Please sign in to comment.