PHP Класс Predis\Command\RawCommand

This command class does not filter input arguments or parse responses, but can be used to leverage the standard Predis API to execute any command simply by providing the needed arguments following the command signature as defined by Redis in its documentation.
Автор: Daniele Alessandri ([email protected])
Наследование: implements Predis\Command\CommandInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( string $commandID, array $arguments = [] )
create ( string $commandID ) : Predis\Command\CommandInterface Creates a new raw command using a variadic method.
getArgument ( $index )
getArguments ( )
getId ( )
getSlot ( )
parseResponse ( $data )
setArguments ( array $arguments )
setRawArguments ( array $arguments )
setSlot ( $slot )

Описание методов

__construct() публичный Метод

public __construct ( string $commandID, array $arguments = [] )
$commandID string Command ID.
$arguments array Command arguments.

create() публичный статический Метод

Creates a new raw command using a variadic method.
public static create ( string $commandID ) : Predis\Command\CommandInterface
$commandID string Redis command ID.
Результат Predis\Command\CommandInterface

getArgument() публичный Метод

public getArgument ( $index )

getArguments() публичный Метод

public getArguments ( )

getId() публичный Метод

public getId ( )

getSlot() публичный Метод

public getSlot ( )

parseResponse() публичный Метод

public parseResponse ( $data )

setArguments() публичный Метод

public setArguments ( array $arguments )
$arguments array

setRawArguments() публичный Метод

public setRawArguments ( array $arguments )
$arguments array

setSlot() публичный Метод

public setSlot ( $slot )