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

Method xreadgroup

lib_acl_cpp/src/redis/redis_stream.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301bool redis_stream::xreadgroup(redis_stream_messages& messages,
302 const char* group, const char* consumer,
303 const std::map<string, string>& streams, size_t count /* = 1000 */,
304 ssize_t block /* = 0 */, bool noack /* = false */)
305{
306 if (streams.size() == 1) {
307 std::map<string, string>::const_iterator cit = streams.begin();
308 hash_slot(cit->first);
309 }
310 xreadgroup_build(group, consumer, streams, count, block, noack);
311 return get_results(messages);
312}
313
314
315bool redis_stream::xreadgroup_with_noack(redis_stream_messages& messages,

Callers 3

xreadgroupFunction · 0.80
xreadgroup_with_xackFunction · 0.80
xreadgroup_loopFunction · 0.80

Calls 4

hash_slotFunction · 0.85
get_resultsFunction · 0.85
beginMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected