FileAccess Orion

Atomic extends Pipeline
in package

Command pipeline wrapped into a MULTI / EXEC transaction.

Tags
author

Daniele Alessandri suppakilla@gmail.com

Table of Contents

$client  : mixed
$pipeline  : mixed
$responses  : mixed
$running  : mixed
__call()  : $this
Queues a command into the pipeline buffer.
__construct()  : mixed
execute()  : array<string|int, mixed>
Handles the actual execution of the whole pipeline.
executeCommand()  : $this
Queues a command instance into the pipeline buffer.
flushPipeline()  : $this
Flushes the buffer holding all of the commands queued so far.
getClient()  : ClientInterface
Returns the underlying client instance used by the pipeline object.
exception()  : mixed
Throws an exception on -ERR responses returned by Redis.
executePipeline()  : array<string|int, mixed>
Implements the logic to flush the queued commands and read the responses from the current connection.
getConnection()  : ConnectionInterface
Returns the underlying connection to be used by the pipeline.
recordCommand()  : mixed
Queues a command instance into the pipeline buffer.
throwServerExceptions()  : bool
Returns if the pipeline should throw exceptions on server errors.
setRunning()  : mixed
Marks the running status of the pipeline.

Properties

$responses

private mixed $responses = array()

Methods

__call()

Queues a command into the pipeline buffer.

public __call(string $method, array<string|int, mixed> $arguments) : $this
Parameters
$method : string

Command ID.

$arguments : array<string|int, mixed>

Arguments for the command.

Return values
$this

execute()

Handles the actual execution of the whole pipeline.

public execute([mixed $callable = null ]) : array<string|int, mixed>
Parameters
$callable : mixed = null

Optional callback for execution.

Tags
throws
Exception
throws
InvalidArgumentException
Return values
array<string|int, mixed>

executeCommand()

Queues a command instance into the pipeline buffer.

public executeCommand(CommandInterface $command) : $this
Parameters
$command : CommandInterface

Command instance to be queued in the buffer.

Return values
$this

flushPipeline()

Flushes the buffer holding all of the commands queued so far.

public flushPipeline([bool $send = true ]) : $this
Parameters
$send : bool = true

Specifies if the commands in the buffer should be sent to Redis.

Return values
$this

executePipeline()

Implements the logic to flush the queued commands and read the responses from the current connection.

protected executePipeline(ConnectionInterface $connection, SplQueue $commands) : array<string|int, mixed>
Parameters
$connection : ConnectionInterface

Current connection instance.

$commands : SplQueue

Queued commands.

Return values
array<string|int, mixed>

recordCommand()

Queues a command instance into the pipeline buffer.

protected recordCommand(CommandInterface $command) : mixed
Parameters
$command : CommandInterface

Command to be queued in the buffer.

Return values
mixed

throwServerExceptions()

Returns if the pipeline should throw exceptions on server errors.

protected throwServerExceptions() : bool
Return values
bool

setRunning()

Marks the running status of the pipeline.

private setRunning(bool $bool) : mixed
Parameters
$bool : bool

Sets the running status of the pipeline.

Tags
throws
ClientException
Return values
mixed

Search results