| 510 | } |
| 511 | |
| 512 | static 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 | |
| 534 | static void usage(const char* procname) |
| 535 | { |
no test coverage detected
searching dependent graphs…