| 447 | } |
| 448 | |
| 449 | int 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 | |
| 465 | long long int redis_command::get_number64(bool* success /* = NULL */) |
| 466 | { |
nothing calls this directly
no test coverage detected