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

Function xinfo_stream

lib_acl_cpp/samples/redis/redis_stream/redis_stream.cpp:512–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512static void xinfo_stream(acl::redis_stream& redis)
513{
514 acl::redis_stream_info info;
515
516 if (redis.xinfo_stream(__key, info) == false) {
517 printf("xinfo_stream error=%s, key=%s\r\n",
518 redis.result_error(), __key.c_str());
519 return;
520 }
521
522 printf("key=%s\r\n", __key.c_str());
523 printf("\tlength=%lu\r\n", (unsigned long) info.length);
524 printf("\tradix_tree_keys=%lu\r\n", (unsigned long) info.radix_tree_keys);
525 printf("\tradix_tree_nodes=%lu\r\n", (unsigned long) info.radix_tree_nodes);
526 printf("\tgroups=%lu\r\n", (unsigned long) info.groups);
527 printf("\tlast_generated_id=%s\r\n", info.last_generated_id.c_str());
528 printf("\tfirst_entry:\r\n");
529 show_message(info.first_entry);
530 printf("\tlast_entry:\r\n");
531 show_message(info.last_entry);
532}
533
534static void usage(const char* procname)
535{

Callers 1

mainFunction · 0.85

Calls 4

show_messageFunction · 0.85
xinfo_streamMethod · 0.80
result_errorMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…