MCPcopy Create free account
hub / github.com/acl-dev/acl / test_exists

Function test_exists

lib_acl_cpp/samples/redis/redis/redis.cpp:116–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static 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
136static bool test_type(acl::redis& cmd, int n)
137{

Callers 1

mainFunction · 0.70

Calls 4

existsMethod · 0.80
formatMethod · 0.45
c_strMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…