RESP3: hiredis: initial double implementation.

This commit is contained in:
antirez
2018-12-06 11:23:23 +01:00
parent 005915b5c3
commit a2b2d88f38
6 changed files with 67 additions and 1 deletions

View File

@ -810,6 +810,9 @@ static sds cliFormatReplyTTY(redisReply *r, char *prefix) {
case REDIS_REPLY_INTEGER:
out = sdscatprintf(out,"(integer) %lld\n",r->integer);
break;
case REDIS_REPLY_DOUBLE:
out = sdscatprintf(out,"(double) %.17g\n",r->dval);
break;
case REDIS_REPLY_STRING:
/* If you are producing output for the standard output we want
* a more interesting output with quoted characters and so forth */