Concept Flow - XADD for adding entries
Start XADD command
Check stream exists?
No→Create new stream
Yes
Generate entry ID
Add entry with fields
Return entry ID
End
This flow shows how Redis XADD adds an entry: it checks the stream, creates if missing, generates an ID, adds the entry, then returns the ID.