add stopsBySystemId and shuttlesBySystemId to cache

This commit is contained in:
2025-01-07 16:09:25 -08:00
parent 38c3362793
commit 9d7e53bdc8

View File

@@ -1,5 +1,5 @@
import { GetterRepository } from "./GetterRepository";
import { IEta, IOrderedStop, IRoute, IStop } from "../entities/entities";
import { IEta, IOrderedStop, IRoute, IShuttle, IStop } from "../entities/entities";
export interface ApiBasedRepositoryCache {
etasForShuttleId?: {
@@ -8,6 +8,12 @@ export interface ApiBasedRepositoryCache {
etasForStopId?: {
[stopId: string]: IEta[],
},
stopsBySystemId?: {
[systemId: string]: IStop[],
},
shuttlesByShuttleId?: {
[shuttleId: string]: IShuttle[],
},
// To speed things up, implement caches for other data later
}