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])
Показать файл Открыть проект Примеры использования интерфейса

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

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