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

Method exec

lib_acl_cpp/src/redis/redis_transaction.cpp:73–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool redis_transaction::exec()
74{
75 const char* argv[1];
76 size_t lens[1];
77
78 argv[0] = "EXEC";
79 lens[0] = sizeof("EXEC") - 1;
80
81 build_request(1, argv, lens);
82 const redis_result* result = run();
83 if(result == NULL || result->get_type() != REDIS_RESULT_ARRAY) {
84 return false;
85 }
86
87 size_t size = result->get_size();
88 if (size != cmds_.size()) {
89 return false;
90 }
91 return true;
92}
93
94bool redis_transaction::discard()
95{

Callers 14

test_execFunction · 0.45
runMethod · 0.45
b_Function · 0.45
cYFunction · 0.45
bcFunction · 0.45
bhFunction · 0.45
yaFunction · 0.45
RGBColorFunction · 0.45
RGBColorFunction · 0.45
TrFunction · 0.45
hvigor-wrapper.jsFile · 0.45

Calls 5

build_requestFunction · 0.50
runFunction · 0.50
get_typeMethod · 0.45
get_sizeMethod · 0.45
sizeMethod · 0.45

Tested by 1

test_execFunction · 0.36