PHP 인터페이스 Predis\ClientInterface

All the commands exposed by the client generally have the same signature as described by the Redis documentation, but some of them offer an additional and more friendly interface to ease programming which is described in the following list of methods:
저자: Daniele Alessandri ([email protected])
파일 보기 프로젝트 열기: nrk/predis 0 사용 예제들

공개 메소드들

메소드 설명
__call ( string $method, array $arguments ) : mixed Creates a Redis command with the specified arguments and sends a request to the server.
connect ( ) Opens the underlying connection to the server.
createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new instance of the specified Redis command.
disconnect ( ) Closes the underlying connection from the server.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Executes the specified Redis command.
getCommandFactory ( ) : Predis\Command\FactoryInterface Returns the command factory used by the client.
getConnection ( ) : Predis\Connection\ConnectionInterface Returns the underlying connection instance.
getOptions ( ) : Predis\Configuration\OptionsInterface Returns the client options specified upon initialization.

메소드 상세

__call() 공개 메소드

Creates a Redis command with the specified arguments and sends a request to the server.
public __call ( string $method, array $arguments ) : mixed
$method string Command ID.
$arguments array Arguments for the command.
리턴 mixed

connect() 공개 메소드

Opens the underlying connection to the server.
public connect ( )

createCommand() 공개 메소드

Creates a new instance of the specified Redis command.
public createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface
$method string Command ID.
$arguments array Arguments for the command.
리턴 Predis\Command\CommandInterface

disconnect() 공개 메소드

Closes the underlying connection from the server.
public disconnect ( )

executeCommand() 공개 메소드

Executes the specified Redis command.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
리턴 mixed

getCommandFactory() 공개 메소드

Returns the command factory used by the client.
public getCommandFactory ( ) : Predis\Command\FactoryInterface
리턴 Predis\Command\FactoryInterface

getConnection() 공개 메소드

Returns the underlying connection instance.
public getConnection ( ) : Predis\Connection\ConnectionInterface
리턴 Predis\Connection\ConnectionInterface

getOptions() 공개 메소드

Returns the client options specified upon initialization.
public getOptions ( ) : Predis\Configuration\OptionsInterface
리턴 Predis\Configuration\OptionsInterface