Arguments
The key to of the stream.
The stream entry ID. If
* is passed, a new ID will be generated
automatically.Key-value data to be appended to the stream.
The maximum number of entries to keep in the stream. Mutually exclusive with
minid.Use approximate trimming (more efficient). When
True, Redis may keep slightly more entries than specified. Defaults to True.Prevent creating the stream if it does not exist. Defaults to
False.The minimum ID to keep. Entries with IDs lower than this will be removed. Mutually exclusive with
maxlen.Limit how many entries will be trimmed at most (only valid with approximate trimming).
Response
The ID of the newly added entry.