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

Method eval_status

lib_acl_cpp/src/redis/redis_script.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool redis_script::eval_status(const char* script,
45 const std::vector<string>& keys,
46 const std::vector<string>& args,
47 const char* success /* = "OK" */)
48{
49 const redis_result* result = eval_cmd("EVAL", script, keys, args);
50 if (result == NULL)
51 return false;
52 const char* status = result->get_status();
53 if (status == NULL || strcasecmp(status, success) != 0)
54 return false;
55 return true;
56}
57
58bool redis_script::eval_number(const char* script,
59 const std::vector<string>& keys,

Callers

nothing calls this directly

Calls 5

get_statusMethod · 0.45
get_childrenMethod · 0.45
reserveMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected