PHP Class Snc\RedisBundle\Client\Predis\Connection\ConnectionWrapper

Inheritance: implements Predis\Connection\SingleConnectionInterface
Show file Open project: snc/SncRedisBundle

Protected Properties

Property Type Description
$connection Predis\Connection\NodeConnectionInterface
$logger Snc\RedisBundle\Logger\RedisLogger

Public Methods

Method Description
__construct ( Predis\Connection\NodeConnectionInterface $connection ) Constructor
__toString ( )
addConnectCommand ( Predis\Command\CommandInterface $command )
connect ( )
disconnect ( )
executeCommand ( Predis\Command\CommandInterface $command )
getConnection ( ) : Predis\Connection\NodeConnectionInterface Returns the underlying connection object
getParameters ( )
getResource ( )
isConnected ( )
pushInitCommand ( Predis\Command\CommandInterface $command )
read ( )
readResponse ( Predis\Command\CommandInterface $command )
setLogger ( Snc\RedisBundle\Logger\RedisLogger $logger = null ) Sets the logger
writeRequest ( Predis\Command\CommandInterface $command )

Private Methods

Method Description
commandToString ( Predis\Command\CommandInterface $command )
toStringArgumentReducer ( string $accumulator, string $argument ) : string Helper function used to reduce a list of arguments to a string.

Method Details

__construct() public method

Constructor
public __construct ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface

__toString() public method

public __toString ( )

addConnectCommand() public method

public addConnectCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

connect() public method

public connect ( )

disconnect() public method

public disconnect ( )

executeCommand() public method

public executeCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

getConnection() public method

Returns the underlying connection object
public getConnection ( ) : Predis\Connection\NodeConnectionInterface
return Predis\Connection\NodeConnectionInterface

getParameters() public method

public getParameters ( )

getResource() public method

public getResource ( )

isConnected() public method

public isConnected ( )

pushInitCommand() public method

public pushInitCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

read() public method

public read ( )

readResponse() public method

public readResponse ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

setLogger() public method

Sets the logger
public setLogger ( Snc\RedisBundle\Logger\RedisLogger $logger = null )
$logger Snc\RedisBundle\Logger\RedisLogger A RedisLogger instance

writeRequest() public method

public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface

Property Details

$connection protected property

protected NodeConnectionInterface,Predis\Connection $connection
return Predis\Connection\NodeConnectionInterface

$logger protected property

protected RedisLogger,Snc\RedisBundle\Logger $logger
return Snc\RedisBundle\Logger\RedisLogger