PHP Class Predis\Protocol\Text\CompositeProtocolProcessor

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

Protected Properties

Свойство Type Description
$reader *
$serializer *

Méthodes publiques

Méthode 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 méthode

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 méthode

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

getResponseReader() public méthode

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

read() public méthode

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

setRequestSerializer() public méthode

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

setResponseReader() public méthode

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

write() public méthode

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