| 31 | const int RedisReply::npos = -1; |
| 32 | |
| 33 | const char* RedisReplyTypeToString(RedisReplyType type) { |
| 34 | switch (type) { |
| 35 | case REDIS_REPLY_STRING: return "string"; |
| 36 | case REDIS_REPLY_ARRAY: return "array"; |
| 37 | case REDIS_REPLY_INTEGER: return "integer"; |
| 38 | case REDIS_REPLY_NIL: return "nil"; |
| 39 | case REDIS_REPLY_STATUS: return "status"; |
| 40 | case REDIS_REPLY_ERROR: return "error"; |
| 41 | default: return "unknown redis type"; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | bool RedisReply::SerializeTo(butil::IOBufAppender* appender) { |
| 46 | switch (_type) { |
no outgoing calls
no test coverage detected