| 110 | } |
| 111 | |
| 112 | void 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 | |
| 127 | void RedisInfoUI::BackgroundWork() |
| 128 | { |
nothing calls this directly
no test coverage detected