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

Function test_exists

lib_acl_cpp/samples/redis/redis_pool/redis_pool.cpp:73–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static 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
92static bool test_type(acl::redis_key& redis, int i)
93{

Callers 1

runMethod · 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…