PHP Class Predis\Protocol\Text\CompositeProtocolProcessor

Author: Daniele Alessandri ([email protected])
Inheritance: implements Predis\Protocol\ProtocolProcessorInterface
Mostrar archivo Open project: tillkruss/redis-object-cache Class Usage Examples

Protected Properties

Property Type Description
$reader *
$serializer *

Public Methods

Method Description
__construct ( Predis\Protocol\RequestSerializerInterface $serializer = null, Predis\Protocol\ResponseReaderInterface $reader = null )
getRequestSerializer ( ) : Predis\Protocol\RequestSerializerInterface Returns the request serializer used by the protocol processor.
getResponseReader ( ) : Predis\Protocol\ResponseReaderInterface Returns the Response reader used by the protocol processor.
read ( Predis\Connection\CompositeConnectionInterface $connection )
setRequestSerializer ( Predis\Protocol\RequestSerializerInterface $serializer ) Sets the request serializer used by the protocol processor.
setResponseReader ( Predis\Protocol\ResponseReaderInterface $reader ) Sets the response reader used by the protocol processor.
write ( Predis\Connection\CompositeConnectionInterface $connection, Predis\Command\CommandInterface $command )

Method Details

__construct() public method

public __construct ( Predis\Protocol\RequestSerializerInterface $serializer = null, Predis\Protocol\ResponseReaderInterface $reader = null )
$serializer Predis\Protocol\RequestSerializerInterface Request serializer.
$reader Predis\Protocol\ResponseReaderInterface Response reader.

getRequestSerializer() public method

Returns the request serializer used by the protocol processor.
public getRequestSerializer ( ) : Predis\Protocol\RequestSerializerInterface
return Predis\Protocol\RequestSerializerInterface

getResponseReader() public method

Returns the Response reader used by the protocol processor.
public getResponseReader ( ) : Predis\Protocol\ResponseReaderInterface
return Predis\Protocol\ResponseReaderInterface

read() public method

public read ( Predis\Connection\CompositeConnectionInterface $connection )
$connection Predis\Connection\CompositeConnectionInterface

setRequestSerializer() public method

Sets the request serializer used by the protocol processor.
public setRequestSerializer ( Predis\Protocol\RequestSerializerInterface $serializer )
$serializer Predis\Protocol\RequestSerializerInterface Request serializer.

setResponseReader() public method

Sets the response reader used by the protocol processor.
public setResponseReader ( Predis\Protocol\ResponseReaderInterface $reader )
$reader Predis\Protocol\ResponseReaderInterface Response reader.

write() public method

public write ( Predis\Connection\CompositeConnectionInterface $connection, Predis\Command\CommandInterface $command )
$connection Predis\Connection\CompositeConnectionInterface
$command Predis\Command\CommandInterface

Property Details

$reader protected_oe property

*
protected $reader

$serializer protected_oe property

*
protected $serializer