PHP 인터페이스 Predis\Connection\ConnectionInterface

저자: Daniele Alessandri ([email protected])
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 0 사용 예제들

공개 메소드들

메소드 설명
connect ( ) Opens the connection to Redis.
disconnect ( ) Closes the connection to Redis.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Writes a request for the given command over the connection and reads back the response returned by Redis.
isConnected ( ) : boolean Checks if the connection to Redis is considered open.
readResponse ( Predis\Command\CommandInterface $command ) : mixed Reads the response to the given command from the connection.
writeRequest ( Predis\Command\CommandInterface $command ) Writes the request for the given command over the connection.

메소드 상세

connect() 공개 메소드

Opens the connection to Redis.
public connect ( )

disconnect() 공개 메소드

Closes the connection to Redis.
public disconnect ( )

executeCommand() 공개 메소드

Writes a request for the given command over the connection and reads back the response returned by Redis.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
리턴 mixed

isConnected() 공개 메소드

Checks if the connection to Redis is considered open.
public isConnected ( ) : boolean
리턴 boolean

readResponse() 공개 메소드

Reads the response to the given command from the connection.
public readResponse ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
리턴 mixed

writeRequest() 공개 메소드

Writes the request for the given command over the connection.
public writeRequest ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface Command instance.