MCPcopy Create free account
hub / github.com/apache/kvrocks / Bool

Function Bool

src/server/redis_reply.cc:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::string Bool(RESP ver, bool b) {
80 if (ver == RESP::v3) {
81 return b ? "#t" CRLF : "#f" CRLF;
82 }
83 return Integer(b ? 1 : 0);
84}
85
86std::string MultiBulkString(RESP ver, const std::vector<std::string> &values) {
87 std::string result = MultiLen(values.size());

Callers 1

BoolMethod · 0.85

Calls 1

IntegerFunction · 0.70

Tested by

no test coverage detected