| 463 | } |
| 464 | |
| 465 | long long int redis_command::get_number64(bool* success /* = NULL */) |
| 466 | { |
| 467 | const redis_result* result = run(); |
| 468 | if (result == NULL || result->get_type() != REDIS_RESULT_INTEGER) { |
| 469 | if (success) { |
| 470 | *success = false; |
| 471 | } |
| 472 | logger_result(result); |
| 473 | return -1; |
| 474 | } |
| 475 | if (success) { |
| 476 | *success = true; |
| 477 | } |
| 478 | return result->get_integer64(); |
| 479 | } |
| 480 | |
| 481 | int redis_command::get_number(std::vector<int>& out) |
| 482 | { |
nothing calls this directly
no test coverage detected