diff options
author | antirez <antirez@gmail.com> | 2018-12-10 16:39:27 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-12-21 11:42:52 +0100 |
commit | 6bfda7134bee6919162f4ecb2c27da08875a27c8 (patch) | |
tree | 5498829f1d0b2c64dcc71776b52a97a53c7d1e86 | |
parent | 5b298a2a6db08552ab079c8095eb27c43bf62ea1 (diff) | |
download | redis-6bfda7134bee6919162f4ecb2c27da08875a27c8.tar.gz |
RESP3: DEBUG PROTOCOL: boolean types.
-rw-r--r-- | src/debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index 9029871ea..d1824dfd7 100644 --- a/src/debug.c +++ b/src/debug.c @@ -572,6 +572,10 @@ NULL * normal reply in order for blocking clients just discarding the * push reply, to actually consume the reply and continue. */ addReplyBulkCString(c,"Some real reply following the push reply"); + } else if (!strcasecmp(name,"true")) { + addReplyBool(c,1); + } else if (!strcasecmp(name,"false")) { + addReplyBool(c,0); } else { addReplyError(c,"Wrong protocol type name. Please use one of the following: string|integer|double|bignum|null|array|set|map|attrib|push|verbatim|true|false|state|err|bloberr"); } |