Documentation

InsertOptions

Table of Contents

durabilityLevel()  : InsertOptions
Sets the durability level to enforce when writing the document.
encoder()  : InsertOptions
Associate custom transcoder with the request.
expiry()  : InsertOptions
Sets the expiry time for the document.
timeout()  : InsertOptions
Sets the operation timeout in milliseconds.

Methods

durabilityLevel()

Sets the durability level to enforce when writing the document.

public durabilityLevel(int $arg) : InsertOptions
Parameters
$arg : int

the durability level to enforce

Return values
InsertOptions

encoder()

Associate custom transcoder with the request.

public encoder(callable $arg) : InsertOptions
Parameters
$arg : callable

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

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

Return values
InsertOptions

timeout()

Sets the operation timeout in milliseconds.

public timeout(int $arg) : InsertOptions
Parameters
$arg : int

the operation timeout to apply

Return values
InsertOptions

Search results