Changed cache TTL to 3 hours.

This commit is contained in:
2018-03-08 10:36:13 +01:00
parent 8fbd0eb9d8
commit 6a7b427ef3

View File

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