XINFO
Reports stream metadata.
Streams · Example verified
Syntax covered here
XINFO STREAM keyThe case checks the entry count and last-generated ID after inserting an explicit-ID entry.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XINFO STREAM events
["length",1,"radix-tree-keys",1,"radix-tree-nodes",2,"last-generated-id","1-0","max-deleted-entry-id","0-0","entries-added",1,"recorded-first-entry-id","1-0","groups",0,"first-entry",["1-0",["event","created"]],"last-entry",["1-0",["event","created"]]]