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);