Up local data cache
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user