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

Method pop

lib_acl_cpp/src/redis/redis_list.cpp:297–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297int redis_list::pop(const char* cmd, const char* key, string& buf)
298{
299 const char* argv[2];
300 size_t lens[2];
301
302 argv[0] = cmd;
303 lens[0] = strlen(cmd);
304 argv[1] = key;
305 lens[1] = strlen(key);
306
307 hash_slot(key);
308 build_request(2, argv, lens);
309 return (int) get_string(buf);
310}
311
312bool redis_list::blpop(std::pair<string, string>& result, size_t timeout,
313 const char* first_key, ...)

Callers 14

mainFunction · 0.45
runMethod · 0.45
runMethod · 0.45
mainFunction · 0.45
check_deadMethod · 0.45
keep_connsMethod · 0.45
waitMethod · 0.45
runMethod · 0.45
BeFunction · 0.45
ptFunction · 0.45
WrFunction · 0.45
wiFunction · 0.45

Calls 2

hash_slotFunction · 0.85
build_requestFunction · 0.50

Tested by

no test coverage detected