@valkey/valkey-glide
    Preparing search index...

    Type Alias StreamTrimOptions

    StreamTrimOptions: (
        | { method: "minid"; threshold: GlideString }
        | { method: "maxlen"; threshold: number }
    ) & { exact: boolean; limit?: number }

    Type Declaration

    • { method: "minid"; threshold: GlideString }
      • method: "minid"

        Trim the stream according to entry ID. Equivalent to MINID in the Valkey API.

      • threshold: GlideString
    • { method: "maxlen"; threshold: number }
      • method: "maxlen"

        Trim the stream according to length. Equivalent to MAXLEN in the Valkey API.

      • threshold: number
    • exact: boolean

      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?: number

      If set, sets the maximal amount of entries that will be deleted.