| 8068 | *--------------------------------------------------------------------------- */ |
| 8069 | |
| 8070 | static void scanMode(void) { |
| 8071 | redisReply *reply; |
| 8072 | unsigned long long cur = 0; |
| 8073 | |
| 8074 | do { |
| 8075 | reply = sendScan(&cur); |
| 8076 | for (unsigned int j = 0; j < reply->element[1]->elements; j++) { |
| 8077 | if (config.output == OUTPUT_STANDARD) { |
| 8078 | sds out = sdscatrepr(sdsempty(), reply->element[1]->element[j]->str, |
| 8079 | reply->element[1]->element[j]->len); |
| 8080 | printf("%s\n", out); |
| 8081 | sdsfree(out); |
| 8082 | } else { |
| 8083 | printf("%s\n", reply->element[1]->element[j]->str); |
| 8084 | } |
| 8085 | } |
| 8086 | freeReplyObject(reply); |
| 8087 | } while(cur != 0); |
| 8088 | |
| 8089 | exit(0); |
| 8090 | } |
| 8091 | |
| 8092 | /*------------------------------------------------------------------------------ |
| 8093 | * LRU test mode |
no test coverage detected