PHP Интерфейс Predis\Command\CommandInterface

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

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

Метод Описание
getArgument ( integer $index ) : mixed | null Gets the argument of the command at the specified index.
getArguments ( ) : array Gets the arguments of the command.
getId ( ) : string Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
getSlot ( ) : integer | null Returns the assigned slot of the command for clustering distribution.
parseResponse ( string $data ) : mixed Parses a raw response and returns a PHP object.
setArguments ( array $arguments ) Sets the arguments for the command.
setRawArguments ( array $arguments ) Sets the raw arguments for the command without processing them.
setSlot ( integer $slot ) Assign the specified slot to the command for clustering distribution.

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

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

Gets the argument of the command at the specified index.
public getArgument ( integer $index ) : mixed | null
$index integer Index of the desired argument.
Результат mixed | null

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

Gets the arguments of the command.
public getArguments ( ) : array
Результат array

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

Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
public getId ( ) : string
Результат string

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

Returns the assigned slot of the command for clustering distribution.
public getSlot ( ) : integer | null
Результат integer | null

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

Parses a raw response and returns a PHP object.
public parseResponse ( string $data ) : mixed
$data string Binary string containing the whole response.
Результат mixed

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

Sets the arguments for the command.
public setArguments ( array $arguments )
$arguments array List of arguments.

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

Sets the raw arguments for the command without processing them.
public setRawArguments ( array $arguments )
$arguments array List of arguments.

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

Assign the specified slot to the command for clustering distribution.
public setSlot ( integer $slot )
$slot integer Slot ID.