| 245 | } |
| 246 | |
| 247 | void 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 | |
| 266 | void expireMemberAtCommand(client *c) |
| 267 | { |
nothing calls this directly
no test coverage detected