| 71 | } |
| 72 | |
| 73 | static bool test_exists(acl::redis_key& redis, int i) |
| 74 | { |
| 75 | acl::string key; |
| 76 | |
| 77 | key.format("%s_%d", __keypre.c_str(), i); |
| 78 | redis.clear(); |
| 79 | if (redis.exists(key.c_str()) == false) |
| 80 | { |
| 81 | if (i < 10) |
| 82 | printf("no exists key: %s\r\n", key.c_str()); |
| 83 | } |
| 84 | else |
| 85 | { |
| 86 | if (i < 10) |
| 87 | printf("exists key: %s\r\n", key.c_str()); |
| 88 | } |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | static bool test_type(acl::redis_key& redis, int i) |
| 93 | { |