Property | Type | Description | |
---|---|---|---|
$handlers |
Method | Description | |
---|---|---|
__construct ( ) | ||
getHandler ( string $prefix ) : Predis\Protocol\Text\Handler\ResponseHandlerInterface | Returns the response handler associated to a certain type of response. | |
read ( Predis\Connection\CompositeConnectionInterface $connection ) | ||
setHandler ( string $prefix, Predis\Protocol\Text\Handler\ResponseHandlerInterface $handler ) | Sets the handler for the specified prefix identifying the response type. |
Method | Description | |
---|---|---|
getDefaultHandlers ( ) : array | Returns the default handlers for the supported type of responses. | |
onProtocolError ( Predis\Connection\CompositeConnectionInterface $connection, string $message ) | Handles protocol errors generated while reading responses from a connection. |
protected getDefaultHandlers ( ) : array | ||
return | array |
public getHandler ( string $prefix ) : Predis\Protocol\Text\Handler\ResponseHandlerInterface | ||
$prefix | string | Identifier of the type of response. |
return | Predis\Protocol\Text\Handler\ResponseHandlerInterface |
protected onProtocolError ( Predis\Connection\CompositeConnectionInterface $connection, string $message ) | ||
$connection | Predis\Connection\CompositeConnectionInterface | Redis connection that generated the error. |
$message | string | Error message. |
public read ( Predis\Connection\CompositeConnectionInterface $connection ) | ||
$connection | Predis\Connection\CompositeConnectionInterface |
public setHandler ( string $prefix, Predis\Protocol\Text\Handler\ResponseHandlerInterface $handler ) | ||
$prefix | string | Identifier of the type of response. |
$handler | Predis\Protocol\Text\Handler\ResponseHandlerInterface | Response handler. |