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

Function setnxCommand

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

Source from the content-addressed store, hash-verified

268}
269
270void setnxCommand(client *c) {
271 c->argv[2] = tryObjectEncoding(c->argv[2]);
272 setGenericCommand(c,OBJ_SET_NX,c->argv[1],c->argv[2],NULL,0,shared.cone,shared.czero);
273}
274
275void setexCommand(client *c) {
276 c->argv[3] = tryObjectEncoding(c->argv[3]);

Callers

nothing calls this directly

Calls 2

tryObjectEncodingFunction · 0.85
setGenericCommandFunction · 0.85

Tested by

no test coverage detected