Changed the default cache TTL from 7 days to 2 days.

This commit is contained in:
2017-12-01 10:46:50 +01:00
parent 38383da1b9
commit f7b772a170

View File

@@ -33,7 +33,7 @@ class Cache {
* @param {Number} timeToLive the number of seconds before entry expires
* @returns {Object}
*/
set(key, value, timeToLive = 86400) {
set(key, value, timeToLive = 172800) {
const json = JSON.stringify(value);
return Promise.resolve()
.then(() => this.database.run(this.queries.create, [key, json, timeToLive]))
@@ -41,4 +41,4 @@ class Cache {
}
}
module.exports = Cache;
module.exports = Cache;