메소드 | 설명 | |
---|---|---|
__construct ( Predis\Connection\ParametersInterface $parameters ) | ||
__destruct ( ) | Disconnects from the server and destroys the underlying resource and the protocol reader resource when PHP's garbage collector kicks in. | |
__wakeup ( ) | ||
connect ( ) | ||
disconnect ( ) | ||
read ( ) | ||
writeRequest ( Predis\Command\CommandInterface $command ) |
메소드 | 설명 | |
---|---|---|
assertExtensions ( ) | Checks if the socket and phpiredis extensions are loaded in PHP. | |
assertParameters ( Predis\Connection\ParametersInterface $parameters ) | ||
createResource ( ) | ||
getAddress ( Predis\Connection\ParametersInterface $parameters ) : string | Gets the address of an host from connection parameters. | |
getErrorHandler ( ) : Closure | Returns the handler used by the protocol reader for error responses. | |
getReader ( ) : resource | Returns the underlying protocol reader resource. | |
getStatusHandler ( ) : Closure | Returns the handler used by the protocol reader for inline responses. | |
write ( $buffer ) |
메소드 | 설명 | |
---|---|---|
connectWithTimeout ( resource $socket, string $address, Predis\Connection\ParametersInterface $parameters ) : string | Opens the actual connection to the server with a timeout. | |
createReader ( ) : resource | Creates a new instance of the protocol reader resource. | |
emitSocketError ( ) | Helper method used to throw exceptions on socket errors. | |
setSocketOptions ( resource $socket, Predis\Connection\ParametersInterface $parameters ) | Sets options on the socket resource from the connection parameters. |
public __construct ( Predis\Connection\ParametersInterface $parameters ) | ||
$parameters | Predis\Connection\ParametersInterface |
public __destruct ( ) |
protected assertExtensions ( ) |
protected assertParameters ( Predis\Connection\ParametersInterface $parameters ) | ||
$parameters | Predis\Connection\ParametersInterface |
protected static getAddress ( Predis\Connection\ParametersInterface $parameters ) : string | ||
$parameters | Predis\Connection\ParametersInterface | Parameters used to initialize the connection. |
리턴 | string |
protected getErrorHandler ( ) : Closure | ||
리턴 | Closure |
protected getReader ( ) : resource | ||
리턴 | resource |
protected getStatusHandler ( ) : Closure | ||
리턴 | Closure |
public writeRequest ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface |