| 87 | } |
| 88 | |
| 89 | size_t redis_result::get_size() const |
| 90 | { |
| 91 | if (result_type_ == REDIS_RESULT_ARRAY) { |
| 92 | return children_idx_; |
| 93 | } else if (result_type_ == REDIS_RESULT_STRING) { |
| 94 | if (argv_ == NULL || lens_ == NULL) |
| 95 | return 0; |
| 96 | return size_; |
| 97 | } else { |
| 98 | return size_; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | int redis_result::get_integer(bool* success /* = NULL */) const |
| 103 | { |
no outgoing calls