mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add fields for cache and ttls
This commit is contained in:
@@ -14,6 +14,9 @@ export interface ApiBasedRepositoryCache {
|
|||||||
shuttleByShuttleId?: {
|
shuttleByShuttleId?: {
|
||||||
[shuttleId: string]: IShuttle,
|
[shuttleId: string]: IShuttle,
|
||||||
},
|
},
|
||||||
|
shuttlesBySystemId?: {
|
||||||
|
[systemId: string]: IShuttle[],
|
||||||
|
},
|
||||||
// To speed things up, implement caches for other data later
|
// To speed things up, implement caches for other data later
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -21,6 +24,7 @@ export interface ApiBasedRepositoryMillisecondTTLs {
|
|||||||
etasForShuttleId?: number,
|
etasForShuttleId?: number,
|
||||||
etasForStopId?: number,
|
etasForStopId?: number,
|
||||||
shuttleByShuttleId?: number,
|
shuttleByShuttleId?: number,
|
||||||
|
shuttlesBySystemId?: number,
|
||||||
}
|
}
|
||||||
|
|
||||||
const emptyCache: ApiBasedRepositoryCache = {
|
const emptyCache: ApiBasedRepositoryCache = {
|
||||||
|
|||||||
Reference in New Issue
Block a user