Update cache.ts

This commit is contained in:
Nicolas 2025-01-23 02:37:04 -03:00
parent ccb74a2b43
commit d162247703

View File

@ -50,7 +50,7 @@ export async function saveEntryToCache(key: string, entry: CacheEntry) {
}
try {
await cacheRedis.set(key, JSON.stringify(entry), "EX", 3600); // 1 hour in seconds
await cacheRedis.set(key, JSON.stringify(entry), "EX", 14400); // 4 hours in seconds
} catch (error) {
logger.warn("Failed to save to cache", { key, error });
}