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

Function expireMemberCommand

src/expire.cpp:247–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void expireMemberCommand(client *c)
248{
249 long long when;
250 if (getLongLongFromObjectOrReply(c, c->argv[3], &when, NULL) != C_OK)
251 return;
252
253 if (c->argc > 5) {
254 addReplyError(c, "Invalid number of arguments");
255 return;
256 }
257
258 int unit = UNIT_SECONDS;
259 if (c->argc == 5) {
260 unit = parseUnitString(szFromObj(c->argv[4]));
261 }
262
263 expireMemberCore(c, c->argv[1], c->argv[2], mstime(), when, unit);
264}
265
266void expireMemberAtCommand(client *c)
267{

Callers

nothing calls this directly

Calls 6

addReplyErrorFunction · 0.85
parseUnitStringFunction · 0.85
szFromObjFunction · 0.85
expireMemberCoreFunction · 0.85
mstimeFunction · 0.70

Tested by

no test coverage detected