| 99 | } |
| 100 | |
| 101 | static bool test_exists(acl::redis& cmd, int n) |
| 102 | { |
| 103 | acl::string key; |
| 104 | |
| 105 | for (int i = 0; i < n; i++) { |
| 106 | key.format("%s_%d", __keypre.c_str(), i); |
| 107 | cmd.clear(); |
| 108 | if (cmd.exists(key.c_str()) == false) { |
| 109 | if (i < 10) |
| 110 | printf("no exists key: %s\r\n", key.c_str()); |
| 111 | } else if (i < 10) |
| 112 | printf("exists key: %s\r\n", key.c_str()); |
| 113 | } |
| 114 | |
| 115 | return true; |
| 116 | } |
| 117 | |
| 118 | static bool test_type(acl::redis& cmd, int n) |
| 119 | { |