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

Method eval_number

lib_acl_cpp/src/redis/redis_script.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool redis_script::eval_number(const char* script,
59 const std::vector<string>& keys,
60 const std::vector<string>& args,
61 int& out)
62{
63 const redis_result* result = eval_cmd("EVAL", script, keys, args);
64 if (result == NULL) {
65 return false;
66 }
67
68 bool success;
69 out = result->get_integer(&success);
70 return success;
71}
72
73bool redis_script::eval_number64(const char* script,
74 const std::vector<string>& keys,

Callers

nothing calls this directly

Calls 5

get_integerMethod · 0.45
get_childrenMethod · 0.45
reserveMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected