Home / node / Commands / interfaces / StreamAddOptions @valkey/valkey-glide
@valkey/valkey-glide / Commands / StreamAddOptions
Interface: StreamAddOptions
Properties
id?
optionalid:string
If set, the new entry will be added with this ID.
makeStream?
optionalmakeStream:boolean
If set to false, a new stream won't be created if no stream matches the
given key. Equivalent to NOMKSTREAM in the Valkey API.
trim?
optionaltrim:StreamTrimOptions
If set, the add operation will also trim the older entries in the stream.