InsertOptions
in package
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 —expiry()
Sets the expiry time for the document.
public
expiry(int $arg) : InsertOptions
Parameters
- $arg : int
-
the expiry time in ms
Return values
InsertOptions —timeout()
Sets the operation timeout in milliseconds.
public
timeout(int $arg) : InsertOptions
Parameters
- $arg : int
-
the operation timeout to apply