PHP 클래스 Predis\Connection\Factory

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

보호된 프로퍼티들

프로퍼티 타입 설명
$schemes

공개 메소드들

메소드 설명
aggregate ( Predis\Connection\AggregateConnectionInterface $connection, array $parameters )
create ( $parameters )
define ( $scheme, $initializer )
getDefaultParameters ( ) : array Returns the default set of parameters applied to new connections.
setDefaultParameters ( array $parameters ) Assigns a default set of parameters applied to new connections.
undefine ( $scheme )

보호된 메소드들

메소드 설명
checkInitializer ( mixed $initializer ) : mixed Checks if the provided argument represents a valid connection class implementing Predis\Connection\NodeConnectionInterface. Optionally, callable objects are used for lazy initialization of connection objects.
createParameters ( mixed $parameters ) : Predis\Connection\ParametersInterface Creates a connection parameters instance from the supplied argument.
prepareConnection ( Predis\Connection\NodeConnectionInterface $connection ) Prepares a connection instance after its initialization.

메소드 상세

aggregate() 공개 메소드

public aggregate ( Predis\Connection\AggregateConnectionInterface $connection, array $parameters )
$connection Predis\Connection\AggregateConnectionInterface
$parameters array

checkInitializer() 보호된 메소드

Checks if the provided argument represents a valid connection class implementing Predis\Connection\NodeConnectionInterface. Optionally, callable objects are used for lazy initialization of connection objects.
protected checkInitializer ( mixed $initializer ) : mixed
$initializer mixed FQN of a connection class or a callable for lazy initialization.
리턴 mixed

create() 공개 메소드

public create ( $parameters )

createParameters() 보호된 메소드

Creates a connection parameters instance from the supplied argument.
protected createParameters ( mixed $parameters ) : Predis\Connection\ParametersInterface
$parameters mixed Original connection parameters.
리턴 Predis\Connection\ParametersInterface

define() 공개 메소드

public define ( $scheme, $initializer )

getDefaultParameters() 공개 메소드

Returns the default set of parameters applied to new connections.
public getDefaultParameters ( ) : array
리턴 array

prepareConnection() 보호된 메소드

Prepares a connection instance after its initialization.
protected prepareConnection ( Predis\Connection\NodeConnectionInterface $connection )
$connection Predis\Connection\NodeConnectionInterface Connection instance.

setDefaultParameters() 공개 메소드

The set of parameters passed to create a new connection have precedence over the default values set for the connection factory.
public setDefaultParameters ( array $parameters )
$parameters array Set of connection parameters.

undefine() 공개 메소드

public undefine ( $scheme )

프로퍼티 상세

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

protected $schemes