refs #653 Make small cache values pinned, so they are sync loaded at start.

This commit is contained in:
Mathew Sutcliffe
2016-04-30 23:03:34 +01:00
parent a492189874
commit 7b04a20e9f
5 changed files with 15 additions and 0 deletions

View File

@@ -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()
{