Up local data cache

This commit is contained in:
2024-05-03 16:53:29 -06:00
parent c7befa4d1c
commit 13096102bc

View File

@@ -63,7 +63,7 @@ export class FocoLiveService {
if (!events) { if (!events) {
events = await this.getAllEvents(); events = await this.getAllEvents();
this.cacheMisses.inc(); this.cacheMisses.inc();
this.cacheManager.set(cacheKeys.allEvents, events, 5 * 60 * 1000); this.cacheManager.set(cacheKeys.allEvents, events, 10 * 60 * 1000);
} }
this.eventCount.set(events.length); this.eventCount.set(events.length);
return events; return events;