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

Function getGenericCommand

app/redis-6.2.6/src/t_string.c:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285int getGenericCommand(client *c) {
286 robj *o;
287
288 if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.null[c->resp])) == NULL)
289 return C_OK;
290
291 if (checkType(c,o,OBJ_STRING)) {
292 return C_ERR;
293 }
294
295 addReplyBulk(c,o);
296 return C_OK;
297}
298
299void getCommand(client *c) {
300 getGenericCommand(c);

Callers 4

setGenericCommandFunction · 0.85
getCommandFunction · 0.85
getdelCommandFunction · 0.85
getsetCommandFunction · 0.85

Calls 3

lookupKeyReadOrReplyFunction · 0.85
checkTypeFunction · 0.85
addReplyBulkFunction · 0.85

Tested by

no test coverage detected