From 0e3189ff11cf0455d6cac067d89fbd907d351d0c Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 22 Oct 2017 18:16:39 +0200 Subject: [PATCH] Added default cache time to be 1 day --- seasoned_api/src/tmdb/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seasoned_api/src/tmdb/cache.js b/seasoned_api/src/tmdb/cache.js index ab980d5..1a55117 100644 --- a/seasoned_api/src/tmdb/cache.js +++ b/seasoned_api/src/tmdb/cache.js @@ -33,7 +33,7 @@ class Cache { * @param {Number} timeToLive the number of seconds before entry expires * @returnsĀ {Object} */ - set(key, value, timeToLive = 60) { + set(key, value, timeToLive = 86400) { const json = JSON.stringify(value); return Promise.resolve() .then(() => this.database.run(this.queries.create, [key, json, timeToLive]))