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

Function addReplyCommandFlag

src/server.cpp:5434–5440  ·  view source on GitHub ↗

Helper function for addReplyCommand() to output flags. */

Source from the content-addressed store, hash-verified

5432
5433/* Helper function for addReplyCommand() to output flags. */
5434int addReplyCommandFlag(client *c, struct redisCommand *cmd, int f, const char *reply) {
5435 if (cmd->flags & f) {
5436 addReplyStatus(c, reply);
5437 return 1;
5438 }
5439 return 0;
5440}
5441
5442/* Output the representation of a Redis command. Used by the COMMAND command. */
5443void addReplyCommand(client *c, struct redisCommand *cmd) {

Callers 1

addReplyCommandFunction · 0.85

Calls 1

addReplyStatusFunction · 0.85

Tested by

no test coverage detected