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

Function getsetCommand

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

Source from the content-addressed store, hash-verified

411}
412
413void getsetCommand(client *c) {
414 if (getGenericCommand(c) == C_ERR) return;
415 c->argv[2] = tryObjectEncoding(c->argv[2]);
416 setKey(c,c->db,c->argv[1],c->argv[2]);
417 notifyKeyspaceEvent(NOTIFY_STRING,"set",c->argv[1],c->db->id);
418 server.dirty++;
419
420 /* Propagate as SET command */
421 rewriteClientCommandArgument(c,0,shared.set);
422}
423
424void setrangeCommand(client *c) {
425 robj *o;

Callers

nothing calls this directly

Calls 5

getGenericCommandFunction · 0.85
tryObjectEncodingFunction · 0.85
setKeyFunction · 0.85
notifyKeyspaceEventFunction · 0.85

Tested by

no test coverage detected