EXISTS key1 key2 ... key_N. * Return value is the number of keys existing. */
| 708 | /* EXISTS key1 key2 ... key_N. |
| 709 | * Return value is the number of keys existing. */ |
| 710 | void existsCommand(client *c) { |
| 711 | long long count = 0; |
| 712 | int j; |
| 713 | |
| 714 | for (j = 1; j < c->argc; j++) { |
| 715 | if (lookupKeyReadWithFlags(c->db,c->argv[j],LOOKUP_NOTOUCH)) count++; |
| 716 | } |
| 717 | addReplyLongLong(c,count); |
| 718 | } |
| 719 | |
| 720 | void selectCommand(client *c) { |
| 721 | int id; |
nothing calls this directly
no test coverage detected