Property | Type | Description | |
---|---|---|---|
$initCommands | |||
$parameters |
Method | Description | |
---|---|---|
__construct ( Predis\Connection\ParametersInterface $parameters ) | ||
__destruct ( ) | Disconnects from the server and destroys the underlying resource when PHP's garbage collector kicks in. | |
__sleep ( ) | ||
__toString ( ) | ||
addConnectCommand ( Predis\Command\CommandInterface $command ) | ||
connect ( ) | ||
disconnect ( ) | ||
executeCommand ( Predis\Command\CommandInterface $command ) | ||
getParameters ( ) | ||
getResource ( ) | ||
isConnected ( ) | ||
readResponse ( Predis\Command\CommandInterface $command ) |
Method | Description | |
---|---|---|
assertParameters ( Predis\Connection\ParametersInterface $parameters ) : Predis\Connection\ParametersInterface | Checks some of the parameters used to initialize the connection. | |
createResource ( ) : mixed | Creates the underlying resource used to communicate with Redis. | |
getIdentifier ( ) : string | Gets an identifier for the connection. | |
onConnectionError ( string $message, integer $code = null ) | Helper method to handle connection errors. | |
onProtocolError ( string $message ) | Helper method to handle protocol errors. |
public __construct ( Predis\Connection\ParametersInterface $parameters ) | ||
$parameters | Predis\Connection\ParametersInterface | Initialization parameters for the connection. |
public __destruct ( ) |
public addConnectCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
abstract protected assertParameters ( Predis\Connection\ParametersInterface $parameters ) : Predis\Connection\ParametersInterface | ||
$parameters | Predis\Connection\ParametersInterface | Initialization parameters for the connection. |
return | Predis\Connection\ParametersInterface |
abstract protected createResource ( ) : mixed | ||
return | mixed |
public executeCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |
protected getIdentifier ( ) : string | ||
return | string |
protected onConnectionError ( string $message, integer $code = null ) | ||
$message | string | Error message. |
$code | integer | Error code. |
protected onProtocolError ( string $message ) | ||
$message | string | Error message. |
public readResponse ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |