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

Method evalsha_status

lib_acl_cpp/src/redis/redis_script.cpp:101–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool redis_script::evalsha_status(const char* script,
102 const std::vector<string>& keys, const std::vector<string>& args,
103 const char* success /* = "OK" */)
104{
105 const redis_result* result = eval_cmd("EVALSHA", script, keys, args);
106 if (result == NULL) {
107 return false;
108 }
109 const char* status = result->get_status();
110 if (status == NULL || strcasecmp(status, success) != 0) {
111 return false;
112 }
113 return true;
114}
115
116bool redis_script::evalsha_number(const char* script,
117 const std::vector<string>& keys,

Callers

nothing calls this directly

Calls 1

get_statusMethod · 0.45

Tested by

no test coverage detected