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

Method xread

lib_acl_cpp/src/redis/redis_stream.cpp:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool redis_stream::xread(redis_stream_messages& messages,
290 const std::map<string, string>& streams,
291 size_t count /* = 1000 */, ssize_t block /* = 0 */)
292{
293 if (streams.size() == 1) {
294 std::map<string, string>::const_iterator cit = streams.begin();
295 hash_slot(cit->first);
296 }
297 xread_build(streams, count, block);
298 return get_results(messages);
299}
300
301bool redis_stream::xreadgroup(redis_stream_messages& messages,
302 const char* group, const char* consumer,

Callers 1

xreadFunction · 0.80

Calls 4

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

Tested by

no test coverage detected