class InsertOptions (View source)

Methods

timeout(int $arg)

Sets the operation timeout in milliseconds.

expiry(int $arg)

Sets the expiry time for the document.

durabilityLevel(int $arg)

Sets the durability level to enforce when writing the document.

encoder(callable $arg)

Associate custom transcoder with the request.

Details

InsertOptions timeout(int $arg)

Sets the operation timeout in milliseconds.

Parameters

int $arg

the operation timeout to apply

Return Value

InsertOptions

InsertOptions expiry(int $arg)

Sets the expiry time for the document.

Parameters

int $arg

the expiry time in ms

Return Value

InsertOptions

InsertOptions durabilityLevel(int $arg)

Sets the durability level to enforce when writing the document.

Parameters

int $arg

the durability level to enforce

Return Value

InsertOptions

InsertOptions encoder(callable $arg)

Associate custom transcoder with the request.

Parameters

callable $arg

encoding function with signature (returns tuple of bytes, flags and datatype):

function encoder($value): [string $bytes, int $flags, int $datatype]

Return Value

InsertOptions