TOUCH key1 [key2 key3 ... keyN] */
| 604 | |
| 605 | /* TOUCH key1 [key2 key3 ... keyN] */ |
| 606 | void touchCommand(client *c) { |
| 607 | int touched = 0; |
| 608 | for (int j = 1; j < c->argc; j++) |
| 609 | if (lookupKeyRead(c->db,c->argv[j]) != NULL) touched++; |
| 610 | addReplyLongLong(c,touched); |
| 611 | } |
| 612 |
nothing calls this directly
no test coverage detected