MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / setnxCommand

Function setnxCommand

src/t_string.cpp:277–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void setnxCommand(client *c) {
278 c->argv[2] = tryObjectEncoding(c->argv[2]);
279 setGenericCommand(c,OBJ_SET_NX,c->argv[1],c->argv[2],NULL,0,shared.cone,shared.czero);
280}
281
282void setexCommand(client *c) {
283 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