PHP 클래스 Predis\Connection\AbstractConnection

저자: Daniele Alessandri ([email protected])
상속: implements Predis\Connection\SingleConnectionInterface
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$initCommands
$parameters

공개 메소드들

메소드 설명
__construct ( Predis\Connection\ParametersInterface $parameters )
__destruct ( ) Disconnects from the server and destroys the underlying resource when PHP's garbage collector kicks in.
__sleep ( )
__toString ( )
addConnectCommand ( Predis\Command\CommandInterface $command )
connect ( )
disconnect ( )
executeCommand ( Predis\Command\CommandInterface $command )
getParameters ( )
getResource ( )
isConnected ( )
readResponse ( Predis\Command\CommandInterface $command )

보호된 메소드들

메소드 설명
assertParameters ( Predis\Connection\ParametersInterface $parameters ) : Predis\Connection\ParametersInterface Checks some of the parameters used to initialize the connection.
createResource ( ) : mixed Creates the underlying resource used to communicate with Redis.
getIdentifier ( ) : string Gets an identifier for the connection.
onConnectionError ( string $message, integer $code = null ) Helper method to handle connection errors.
onProtocolError ( string $message ) Helper method to handle protocol errors.

메소드 상세

__construct() 공개 메소드

public __construct ( Predis\Connection\ParametersInterface $parameters )
$parameters Predis\Connection\ParametersInterface Initialization parameters for the connection.

__destruct() 공개 메소드

Disconnects from the server and destroys the underlying resource when PHP's garbage collector kicks in.
public __destruct ( )

__sleep() 공개 메소드

public __sleep ( )

__toString() 공개 메소드

public __toString ( )

addConnectCommand() 공개 메소드

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

assertParameters() 추상적인 보호된 메소드

Checks some of the parameters used to initialize the connection.
abstract protected assertParameters ( Predis\Connection\ParametersInterface $parameters ) : Predis\Connection\ParametersInterface
$parameters Predis\Connection\ParametersInterface Initialization parameters for the connection.
리턴 Predis\Connection\ParametersInterface

connect() 공개 메소드

public connect ( )

createResource() 추상적인 보호된 메소드

Creates the underlying resource used to communicate with Redis.
abstract protected createResource ( ) : mixed
리턴 mixed

disconnect() 공개 메소드

public disconnect ( )

executeCommand() 공개 메소드

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

getIdentifier() 보호된 메소드

Gets an identifier for the connection.
protected getIdentifier ( ) : string
리턴 string

getParameters() 공개 메소드

public getParameters ( )

getResource() 공개 메소드

public getResource ( )

isConnected() 공개 메소드

public isConnected ( )

onConnectionError() 보호된 메소드

Helper method to handle connection errors.
protected onConnectionError ( string $message, integer $code = null )
$message string Error message.
$code integer Error code.

onProtocolError() 보호된 메소드

Helper method to handle protocol errors.
protected onProtocolError ( string $message )
$message string Error message.

readResponse() 공개 메소드

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

프로퍼티 상세

$initCommands 보호되어 있는 프로퍼티

protected $initCommands

$parameters 보호되어 있는 프로퍼티

protected $parameters