MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addReplyCommandFlag

Function addReplyCommandFlag

app/redis-6.2.6/src/server.c:4468–4474  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4466
4467/* Helper function for addReplyCommand() to output flags. */
4468int addReplyCommandFlag(client *c, struct redisCommand *cmd, int f, char *reply) {
4469 if (cmd->flags & f) {
4470 addReplyStatus(c, reply);
4471 return 1;
4472 }
4473 return 0;
4474}
4475
4476/* Output the representation of a Redis command. Used by the COMMAND command. */
4477void addReplyCommand(client *c, struct redisCommand *cmd) {

Callers 1

addReplyCommandFunction · 0.85

Calls 1

addReplyStatusFunction · 0.85

Tested by

no test coverage detected