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