Documentation

MutateInOptions
in package

Table of Contents

$cas  : string|null
$durabilityLevel  : string|null
$expirySeconds  : int|null
$expiryTimestamp  : int|null
$preserveExpiry  : bool|null
$storeSemantics  : string
$timeoutMilliseconds  : int|null
$transcoder  : Transcoder
__construct()  : mixed
build()  : MutateInOptions
Static helper to keep code more readable
cas()  : MutateInOptions
Sets the cas value to use when performing this operation.
durabilityLevel()  : MutateInOptions
Sets the durability level to enforce when writing the document.
encodeValue()  : string
Delegates encoding of the value to associated transcoder
expiry()  : MutateInOptions
Sets the expiry time for the document.
preserveExpiry()  : MutateInOptions
Sets whether the original expiration should be preserved (by default Replace operation updates expiration).
storeSemantics()  : MutateInOptions
Sets the document level action to use when performing the operation.
timeout()  : MutateInOptions
Sets the operation timeout in milliseconds.
transcoder()  : MutateInOptions
Associate custom transcoder with the request.

Properties

Methods

__construct()

public __construct() : mixed
Tags
since
4.0.0
Return values
mixed

encodeValue()

Delegates encoding of the value to associated transcoder

public static encodeValue(MutateInOptions|null $options,  $document) : string
Parameters
$options : MutateInOptions|null
$document :
Tags
since
4.0.0
Return values
string

expiry()

Sets the expiry time for the document.

public expiry(int|DateTimeInterface $seconds) : MutateInOptions
Parameters
$seconds : int|DateTimeInterface

the relative expiry time in seconds or DateTimeInterface object for absolute point in time

Tags
since
4.0.0
Return values
MutateInOptions

preserveExpiry()

Sets whether the original expiration should be preserved (by default Replace operation updates expiration).

public preserveExpiry(bool $shouldPreserve) : MutateInOptions
Parameters
$shouldPreserve : bool

if true, the expiration time will not be updated

Tags
since
4.0.0
Return values
MutateInOptions

timeout()

Sets the operation timeout in milliseconds.

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

the operation timeout to apply

Tags
since
4.0.0
Return values
MutateInOptions

        

Search results