mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #653 Make small cache values pinned, so they are sync loaded at start.
This commit is contained in:
@@ -27,6 +27,9 @@ namespace BlackCore
|
||||
//! Key in data cache
|
||||
static const char *key() { return "dbuser"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const BlackMisc::Network::CAuthenticatedUser &defaultValue()
|
||||
{
|
||||
|
||||
@@ -189,6 +189,9 @@ namespace BlackCore
|
||||
//! Key in data cache
|
||||
static const char *key() { return "bootstrap"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CGlobalSetup &defaultValue()
|
||||
{
|
||||
|
||||
@@ -118,6 +118,9 @@ namespace BlackCore
|
||||
//! Key in data cache
|
||||
static const char *key() { return "version"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CUpdateInfo &defaultValue()
|
||||
{
|
||||
|
||||
@@ -121,6 +121,9 @@ namespace BlackCore
|
||||
//! Key in data cache
|
||||
static const char *key() { return "vatsim"; }
|
||||
|
||||
//! First load is synchronous
|
||||
static bool isPinned() { return true; }
|
||||
|
||||
//! Default value
|
||||
static const CVatsimSetup &defaultValue()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user