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

Method get_number

lib_acl_cpp/src/redis/redis_command.cpp:449–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449int redis_command::get_number(bool* success /* = NULL */)
450{
451 const redis_result* result = run();
452 if (result == NULL || result->get_type() != REDIS_RESULT_INTEGER) {
453 if (success) {
454 *success = false;
455 }
456 logger_result(result);
457 return -1;
458 }
459 if (success) {
460 *success = true;
461 }
462 return result->get_integer();
463}
464
465long long int redis_command::get_number64(bool* success /* = NULL */)
466{

Callers

nothing calls this directly

Calls 7

runFunction · 0.50
get_typeMethod · 0.45
get_integerMethod · 0.45
clearMethod · 0.45
get_childrenMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected