| 42 | } |
| 43 | |
| 44 | bool 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 | |
| 58 | bool redis_script::eval_number(const char* script, |
| 59 | const std::vector<string>& keys, |
nothing calls this directly
no test coverage detected