메소드 | 설명 | |
---|---|---|
__call ( string $method, array $arguments ) | Queues a command into the pipeline buffer. | |
__construct ( Predis\ClientInterface $client ) | ||
execute ( mixed $callable = null ) : array | Handles the actual execution of the whole pipeline. | |
executeCommand ( Predis\Command\CommandInterface $command ) | Queues a command instance into the pipeline buffer. | |
flushPipeline ( boolean $send = true ) | Flushes the buffer holding all of the commands queued so far. | |
getClient ( ) : Predis\ClientInterface | Returns the underlying client instance used by the pipeline object. |
메소드 | 설명 | |
---|---|---|
exception ( Predis\Connection\ConnectionInterface $connection, Predis\Response\ErrorInterface $response ) | Throws an exception on -ERR responses returned by Redis. | |
executePipeline ( Predis\Connection\ConnectionInterface $connection, SplQueue $commands ) : array | Implements the logic to flush the queued commands and read the responses from the current connection. | |
getConnection ( ) : Predis\Connection\ConnectionInterface | Returns the underlying connection to be used by the pipeline. | |
recordCommand ( Predis\Command\CommandInterface $command ) | Queues a command instance into the pipeline buffer. | |
throwServerExceptions ( ) : boolean | Returns if the pipeline should throw exceptions on server errors. |
메소드 | 설명 | |
---|---|---|
setRunning ( boolean $bool ) | Marks the running status of the pipeline. |
public __construct ( Predis\ClientInterface $client ) | ||
$client | Predis\ClientInterface | Client instance used by the context. |
protected exception ( Predis\Connection\ConnectionInterface $connection, Predis\Response\ErrorInterface $response ) | ||
$connection | Predis\Connection\ConnectionInterface | Redis connection that returned the error. |
$response | Predis\Response\ErrorInterface | Instance of the error response. |
public executeCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface | Command instance to be queued in the buffer. |
protected executePipeline ( Predis\Connection\ConnectionInterface $connection, SplQueue $commands ) : array | ||
$connection | Predis\Connection\ConnectionInterface | Current connection instance. |
$commands | SplQueue | Queued commands. |
리턴 | array |
public flushPipeline ( boolean $send = true ) | ||
$send | boolean | Specifies if the commands in the buffer should be sent to Redis. |
public getClient ( ) : Predis\ClientInterface | ||
리턴 | Predis\ClientInterface |
protected getConnection ( ) : Predis\Connection\ConnectionInterface | ||
리턴 | Predis\Connection\ConnectionInterface |
protected recordCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface | Command to be queued in the buffer. |
protected throwServerExceptions ( ) : boolean | ||
리턴 | boolean |