StorageWriteOptions interface

Options applied to every item in a version 2 write operation.

Properties

expectedVersion
mode
ttl

Optional time to live, in seconds, for written items.

When set, storage providers stop returning the written items after this duration has elapsed. Values must be finite numbers greater than zero.

Property Details

expectedVersion

expectedVersion?: string

Property Value

string

mode

mode?: StorageWriteMode

Property Value

ttl

Optional time to live, in seconds, for written items.

When set, storage providers stop returning the written items after this duration has elapsed. Values must be finite numbers greater than zero.

ttl?: number

Property Value

number