| 99 | } |
| 100 | |
| 101 | bool 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 | |
| 116 | bool redis_script::evalsha_number(const char* script, |
| 117 | const std::vector<string>& keys, |
nothing calls this directly
no test coverage detected