| 179 | } |
| 180 | |
| 181 | int 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 | |
| 190 | void expireMemberCore(client *c, robj *key, robj *subkey, long long basetime, long long when, int unit) |
| 191 | { |
no outgoing calls
no test coverage detected