| 303 | } |
| 304 | |
| 305 | bool redis_server::get_command(string& buf) |
| 306 | { |
| 307 | clear_request(); |
| 308 | |
| 309 | const redis_result* result = run(); |
| 310 | if (result == NULL || result->get_type() != REDIS_RESULT_STATUS) { |
| 311 | return false; |
| 312 | } |
| 313 | const char* status = result->get_status(); |
| 314 | if (status == NULL || *status == '\0') { |
| 315 | return false; |
| 316 | } |
| 317 | buf = status; |
| 318 | return true; |
| 319 | } |
| 320 | |
| 321 | bool redis_server::save() |
| 322 | { |
no test coverage detected