MCPcopy Create free account
hub / github.com/cinience/RedisStudio / RefreshInfo

Method RefreshInfo

RedisStudio/RedisInfoUI.cpp:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void RedisInfoUI::RefreshInfo()
113{
114 DBClient* cli = Env()->GetDBClient();
115 if (cli == NULL) return;
116
117 if (!cli->IsConnected()) return;
118
119 string info ;
120 if (!cli->Info(info)) return;
121
122 if (info.empty()) return;
123 std::string* pInfo = new std::string(info);
124 PostMessage(GetHWND(), WM_USER_INFOUPDATE, (WPARAM)pInfo, NULL);
125}
126
127void RedisInfoUI::BackgroundWork()
128{

Callers

nothing calls this directly

Calls 4

GetDBClientMethod · 0.80
IsConnectedMethod · 0.45
InfoMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected