PHP Интерфейс Predis\Connection\ConnectionInterface

Автор: Daniele Alessandri ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.