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

Function test_del

lib_acl_cpp/samples/redis/redis_ssl/redis.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static bool test_del(acl::redis& cmd, int n)
45{
46 acl::string key;
47
48 for (int i = 0; i < n; i++) {
49 key.format("%s_%d", __keypre.c_str(), i);
50 cmd.clear();
51 int ret = cmd.del_one(key.c_str());
52 if (ret < 0) {
53 printf("del key: %s error: %s\r\n", key.c_str(),
54 cmd.result_error());
55 return false;
56 } else if (i < 10)
57 printf("del ok, key: %s\r\n", key.c_str());
58 }
59
60 return true;
61}
62
63static bool test_expire(acl::redis& cmd, int n)
64{

Callers 1

mainFunction · 0.70

Calls 5

del_oneMethod · 0.80
result_errorMethod · 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…