mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add stopsBySystemId and shuttlesBySystemId to cache
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { GetterRepository } from "./GetterRepository";
|
import { GetterRepository } from "./GetterRepository";
|
||||||
import { IEta, IOrderedStop, IRoute, IStop } from "../entities/entities";
|
import { IEta, IOrderedStop, IRoute, IShuttle, IStop } from "../entities/entities";
|
||||||
|
|
||||||
export interface ApiBasedRepositoryCache {
|
export interface ApiBasedRepositoryCache {
|
||||||
etasForShuttleId?: {
|
etasForShuttleId?: {
|
||||||
@@ -8,6 +8,12 @@ export interface ApiBasedRepositoryCache {
|
|||||||
etasForStopId?: {
|
etasForStopId?: {
|
||||||
[stopId: string]: IEta[],
|
[stopId: string]: IEta[],
|
||||||
},
|
},
|
||||||
|
stopsBySystemId?: {
|
||||||
|
[systemId: string]: IStop[],
|
||||||
|
},
|
||||||
|
shuttlesByShuttleId?: {
|
||||||
|
[shuttleId: string]: IShuttle[],
|
||||||
|
},
|
||||||
// To speed things up, implement caches for other data later
|
// To speed things up, implement caches for other data later
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user