class DecrementOptions (View source)

Methods

timeout(int $arg)

Sets the operation timeout in milliseconds.

expiry(mixed $arg)

Sets the expiry time for the document.

durabilityLevel(int $arg)

Sets the durability level to enforce when writing the document.

delta(int $arg)

Sets the value to decrement the counter by.

initial(int $arg)

Sets the value to initialize the counter to if the document does not exist.

Details

DecrementOptions timeout(int $arg)

Sets the operation timeout in milliseconds.

Parameters

int $arg

the operation timeout to apply

Return Value

DecrementOptions

DecrementOptions expiry(mixed $arg)

Sets the expiry time for the document.

Parameters

mixed $arg

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

Return Value

DecrementOptions

DecrementOptions durabilityLevel(int $arg)

Sets the durability level to enforce when writing the document.

Parameters

int $arg

the durability level to enforce

Return Value

DecrementOptions

DecrementOptions delta(int $arg)

Sets the value to decrement the counter by.

Parameters

int $arg

the value to decrement by

Return Value

DecrementOptions

DecrementOptions initial(int $arg)

Sets the value to initialize the counter to if the document does not exist.

Parameters

int $arg

the initial value to use if counter does not exist

Return Value

DecrementOptions