From 9ea06240220452b8860c775134baaf1fa47922ab Mon Sep 17 00:00:00 2001 From: Filip Znachor Date: Tue, 17 Sep 2024 09:52:00 +0200 Subject: [PATCH] Increased cache expiry --- src/cache/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache/redis.ts b/src/cache/redis.ts index 3b68b98..d100c4b 100644 --- a/src/cache/redis.ts +++ b/src/cache/redis.ts @@ -23,7 +23,7 @@ export default class RedisCache implements Cache { return this.client; } - public async save(key: string, data: any, ttl: number = 30*60) { + public async save(key: string, data: any, ttl: number = 7*24*60*60) { let redis = await this.getClient(); await redis.set(key, JSON.stringify(data)); await redis.expire(key, ttl);