| 412 | } |
| 413 | |
| 414 | void sismemberCommand(client *c) { |
| 415 | robj_roptr set; |
| 416 | |
| 417 | if ((set = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == nullptr || |
| 418 | checkType(c,set,OBJ_SET)) return; |
| 419 | |
| 420 | if (setTypeIsMember(set,szFromObj(c->argv[2]))) |
| 421 | addReply(c,shared.cone); |
| 422 | else |
| 423 | addReply(c,shared.czero); |
| 424 | } |
| 425 | |
| 426 | void smismemberCommand(client *c) { |
| 427 | robj_roptr set; |
nothing calls this directly
no test coverage detected