| 290 | } |
| 291 | |
| 292 | int getGenericCommand(client *c) { |
| 293 | robj_roptr o; |
| 294 | AeLocker locker; |
| 295 | |
| 296 | if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.null[c->resp],locker)) == nullptr) |
| 297 | return C_OK; |
| 298 | |
| 299 | if (checkType(c,o,OBJ_STRING)) { |
| 300 | return C_ERR; |
| 301 | } |
| 302 | |
| 303 | addReplyBulk(c,o); |
| 304 | return C_OK; |
| 305 | } |
| 306 | |
| 307 | void getCommand(client *c) { |
| 308 | getGenericCommand(c); |
no test coverage detected