在redis源码目录redis-3.2.2\deps\hiredis\hiredis.h 里面定义了redis命令的返回值类型
#define REDIS_REPLY_STRING 1
#define REDIS_REPLY_ARRAY 2
#define REDIS_REPLY_INTEGER 3
#define REDIS_REPLY_NIL 4
#define REDIS_REPLY_STATUS 5
#define REDIS_REPLY_ERROR 6
redis-cli 代码里面输出返回值的几个函数分别是
static sds cliFormatReplyTTY(redisReply *r, char *prefix);
static sds cliFormatReplyRaw(redisReply *r)
static sds cliFormatReplyCSV(redisReply *r)
三个静态函数