mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #656, using deferred for large caches
This commit is contained in:
@@ -33,6 +33,9 @@ namespace BlackCore
|
||||
//! Default value
|
||||
static const BlackMisc::Simulation::CAircraftModelList &defaultValue();
|
||||
|
||||
//! Defer loading
|
||||
static constexpr bool isDeferred() { return true; }
|
||||
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbmodelcache"; }
|
||||
};
|
||||
@@ -43,6 +46,9 @@ namespace BlackCore
|
||||
//! Default value
|
||||
static const BlackMisc::Aviation::CAirlineIcaoCodeList &defaultValue();
|
||||
|
||||
//! Defer loading
|
||||
static constexpr bool isDeferred() { return true; }
|
||||
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbairlineicaocache"; }
|
||||
};
|
||||
@@ -54,6 +60,9 @@ namespace BlackCore
|
||||
//! Default value
|
||||
static const BlackMisc::Aviation::CAircraftIcaoCodeList &defaultValue();
|
||||
|
||||
//! Defer loading
|
||||
static constexpr bool isDeferred() { return true; }
|
||||
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbaircrafticaocache"; }
|
||||
};
|
||||
@@ -64,6 +73,9 @@ namespace BlackCore
|
||||
//! Default value
|
||||
static const BlackMisc::CCountryList &defaultValue();
|
||||
|
||||
//! Defer loading (no currently small)
|
||||
static constexpr bool isDeferred() { return false; }
|
||||
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbcountrycache"; }
|
||||
};
|
||||
@@ -74,6 +86,9 @@ namespace BlackCore
|
||||
//! Default value
|
||||
static const BlackMisc::Aviation::CLiveryList &defaultValue();
|
||||
|
||||
//! Defer loading
|
||||
static constexpr bool isDeferred() { return true; }
|
||||
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbliverycache"; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user