| 194 | inline bool RedisReply::is_array() const { return _type == REDIS_REPLY_ARRAY; } |
| 195 | |
| 196 | inline int64_t RedisReply::integer() const { |
| 197 | if (is_integer()) { |
| 198 | return _data.integer; |
| 199 | } |
| 200 | CHECK(false) << "The reply is " << RedisReplyTypeToString(_type) |
| 201 | << ", not an integer"; |
| 202 | return 0; |
| 203 | } |
| 204 | |
| 205 | inline void RedisReply::SetNullArray() { |
| 206 | if (_type != REDIS_REPLY_NIL) { |