Skip to content

Home / node / Commands / interfaces / StreamAddOptions @valkey/valkey-glide


@valkey/valkey-glide / Commands / StreamAddOptions

Interface: StreamAddOptions

Properties

id?

optional id: string

If set, the new entry will be added with this ID.


makeStream?

optional makeStream: 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?

optional trim: StreamTrimOptions

If set, the add operation will also trim the older entries in the stream.