MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplyBool

Function addReplyBool

src/networking.cpp:953–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953void addReplyBool(client *c, int b) {
954 if (c->resp == 2) {
955 addReply(c, b ? shared.cone : shared.czero);
956 } else {
957 addReplyProto(c, b ? "#t\r\n" : "#f\r\n",4);
958 }
959}
960
961/* A null array is a concept that no longer exists in RESP3. However
962 * RESP2 had it, so API-wise we have this call, that will emit the correct

Callers 3

mexistsCommandFunction · 0.85
debugCommandFunction · 0.85
luaReplyToRedisReplyFunction · 0.85

Calls 2

addReplyFunction · 0.85
addReplyProtoFunction · 0.85

Tested by

no test coverage detected