Trim the stream according to length.
Equivalent to MAXLEN in the Valkey API.
If true, the stream will be trimmed exactly. Equivalent to = in the
Valkey API. Otherwise the stream will be trimmed in a near-exact manner,
which is more efficient, equivalent to ~ in the Valkey API.
Optionallimit?: numberIf set, sets the maximal amount of entries that will be deleted.
Trim the stream according to entry ID. Equivalent to
MINIDin the Valkey API.