mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-11-12 16:27:37 +00:00
Update cache.ts
This commit is contained in:
parent
ccb74a2b43
commit
d162247703
@ -50,7 +50,7 @@ export async function saveEntryToCache(key: string, entry: CacheEntry) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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) {
|
} catch (error) {
|
||||||
logger.warn("Failed to save to cache", { key, error });
|
logger.warn("Failed to save to cache", { key, error });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user