class GetAndLockOptions (View source)

Methods

timeout(int $arg)

Sets the operation timeout in milliseconds.

decoder(callable $arg)

Associate custom transcoder with the request.

Details

GetAndLockOptions timeout(int $arg)

Sets the operation timeout in milliseconds.

Parameters

int $arg

the operation timeout to apply

Return Value

GetAndLockOptions

GetAndLockOptions decoder(callable $arg)

Associate custom transcoder with the request.

Parameters

callable $arg

decoding function with signature (returns decoded value):

function decoder(string $bytes, int $flags, int $datatype): mixed

Return Value

GetAndLockOptions