| 283 | } |
| 284 | |
| 285 | int getGenericCommand(client *c) { |
| 286 | robj *o; |
| 287 | |
| 288 | if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.null[c->resp])) == NULL) |
| 289 | return C_OK; |
| 290 | |
| 291 | if (checkType(c,o,OBJ_STRING)) { |
| 292 | return C_ERR; |
| 293 | } |
| 294 | |
| 295 | addReplyBulk(c,o); |
| 296 | return C_OK; |
| 297 | } |
| 298 | |
| 299 | void getCommand(client *c) { |
| 300 | getGenericCommand(c); |
no test coverage detected