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

Function addReplyCommandCategories

app/redis-6.2.6/src/acl.c:2227–2237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2225}
2226
2227void addReplyCommandCategories(client *c, struct redisCommand *cmd) {
2228 int flagcount = 0;
2229 void *flaglen = addReplyDeferredLen(c);
2230 for (int j = 0; ACLCommandCategories[j].flag != 0; j++) {
2231 if (cmd->flags & ACLCommandCategories[j].flag) {
2232 addReplyStatusFormat(c, "@%s", ACLCommandCategories[j].name);
2233 flagcount++;
2234 }
2235 }
2236 setDeferredSetLen(c, flaglen, flagcount);
2237}
2238
2239/* AUTH <password>
2240 * AUTH <username> <password> (Redis >= 6.0 form)

Callers 1

addReplyCommandFunction · 0.85

Calls 3

addReplyDeferredLenFunction · 0.85
addReplyStatusFormatFunction · 0.85
setDeferredSetLenFunction · 0.85

Tested by

no test coverage detected