refs #656, using deferred for large caches

This commit is contained in:
Klaus Basan
2016-05-27 23:32:39 +02:00
parent 467f37db7f
commit e6f0db73c5
3 changed files with 24 additions and 4 deletions

View File

@@ -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"; }
};