MCPcopy Create free account
hub / github.com/acl-dev/acl / get_command

Method get_command

lib_acl_cpp/src/redis/redis_server.cpp:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool 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
321bool redis_server::save()
322{

Callers 1

runMethod · 0.80

Calls 3

runFunction · 0.50
get_typeMethod · 0.45
get_statusMethod · 0.45

Tested by

no test coverage detected