MCPcopy Create free account
hub / github.com/apache/brpc / RedisReplyTypeToString

Function RedisReplyTypeToString

src/brpc/redis_reply.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31const int RedisReply::npos = -1;
32
33const 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
45bool RedisReply::SerializeTo(butil::IOBufAppender* appender) {
46 switch (_type) {

Callers 4

integerMethod · 0.85
c_strMethod · 0.85
dataMethod · 0.85
error_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected