PHP Interface Predis\Connection\NodeConnectionInterface

Author: Daniele Alessandri ([email protected])
Inheritance: extends Predis\Connection\ConnectionInterface
Show file Open project: tillkruss/redis-object-cache Interface Usage Examples

Public Methods

Method Description
__toString ( ) : string Returns a string representation of the connection.
addConnectCommand ( Predis\Command\CommandInterface $command ) Pushes the given command into a queue of commands executed when establishing the actual connection to Redis.
getParameters ( ) : Predis\Connection\ParametersInterface Returns the parameters used to initialize the connection.
getResource ( ) : mixed Returns the underlying resource used to communicate with Redis.
read ( ) : mixed Reads a response from the server.

Method Details

__toString() public method

Returns a string representation of the connection.
public __toString ( ) : string
return string

addConnectCommand() public method

Pushes the given command into a queue of commands executed when establishing the actual connection to Redis.
public addConnectCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface Instance of a Redis command.

getParameters() public method

Returns the parameters used to initialize the connection.
public getParameters ( ) : Predis\Connection\ParametersInterface
return Predis\Connection\ParametersInterface

getResource() public method

Returns the underlying resource used to communicate with Redis.
public getResource ( ) : mixed
return mixed

read() public method

Reads a response from the server.
public read ( ) : mixed
return mixed