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

Function parseUnitString

src/expire.cpp:181–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181int parseUnitString(const char *sz)
182{
183 if (strcasecmp(sz, "s") == 0)
184 return UNIT_SECONDS;
185 if (strcasecmp(sz, "ms") == 0)
186 return UNIT_MILLISECONDS;
187 return -1;
188}
189
190void expireMemberCore(client *c, robj *key, robj *subkey, long long basetime, long long when, int unit)
191{

Callers 2

expireMemberCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected