| 114 | } |
| 115 | |
| 116 | static bool test_exists(acl::redis& cmd, int n) |
| 117 | { |
| 118 | acl::string key; |
| 119 | |
| 120 | for (int i = 0; i < n; i++) |
| 121 | { |
| 122 | key.format("%s_%d", __keypre.c_str(), i); |
| 123 | cmd.clear(); |
| 124 | if (cmd.exists(key.c_str()) == false) |
| 125 | { |
| 126 | if (i < 10) |
| 127 | printf("no exists key: %s\r\n", key.c_str()); |
| 128 | } |
| 129 | else if (i < 10) |
| 130 | printf("exists key: %s\r\n", key.c_str()); |
| 131 | } |
| 132 | |
| 133 | return true; |
| 134 | } |
| 135 | |
| 136 | static bool test_type(acl::redis& cmd, int n) |
| 137 | { |