diff options
author | Mark Nunberg <mnunberg@users.noreply.github.com> | 2019-08-27 06:59:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 06:59:32 -0400 |
commit | ff4fa45422dc104f3377cdc3bc88d2d24ac2fcf3 (patch) | |
tree | e78792fdfe41d39c887e5ca0f325e46865ad74aa /hiredis.h | |
parent | ce7cb7bcc4ca53291aca8ab8dc0f31e27c032dcc (diff) | |
parent | 91de9c975ac66b6eaddb6de96440a282e4227447 (diff) |
Merge pull request #697 from yossigo/resp3
Port RESP3 support from Redis.
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -101,8 +101,10 @@ extern "C" { typedef struct redisReply { int type; /* REDIS_REPLY_* */ long long integer; /* The integer when type is REDIS_REPLY_INTEGER */ + double dval; /* The double when type is REDIS_REPLY_DOUBLE */ size_t len; /* Length of string */ - char *str; /* Used for both REDIS_REPLY_ERROR and REDIS_REPLY_STRING */ + char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING + and REDIS_REPLY_DOUBLE (in additionl to dval). */ size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */ struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */ } redisReply; |