Documentation

PrependOptions
in package

Table of Contents

$cas  : string|null
$durabilityLevel  : string|null
$parentSpan  : RequestSpan|null
$retryStrategy  : string|null
$timeoutMilliseconds  : int|null
build()  : PrependOptions
Static helper to keep code more readable
cas()  : PrependOptions
Sets the cas value to use when performing this operation.
durabilityLevel()  : PrependOptions
Sets the durability level to enforce when writing the document.
parentSpan()  : PrependOptions
Sets the parent span.
retryStrategy()  : PrependOptions
Selects how the operation retries, for example on a locked document. An unknown value makes the operation throw InvalidArgumentException.
timeout()  : PrependOptions
Sets the operation timeout in milliseconds.

Properties

$timeoutMilliseconds

private int|null $timeoutMilliseconds = null

Methods

retryStrategy()

Selects how the operation retries, for example on a locked document. An unknown value makes the operation throw InvalidArgumentException.

public retryStrategy(string $strategy) : PrependOptions
Parameters
$strategy : string

one of the constants

Tags
see
RetryStrategy
since
4.6.0
Return values
PrependOptions —

timeout()

Sets the operation timeout in milliseconds.

public timeout(int $milliseconds) : PrependOptions
Parameters
$milliseconds : int

the operation timeout to apply

Tags
since
4.0.0
Return values
PrependOptions —

        

Search results