PHP Class 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.
Author: Daniele Alessandri ([email protected])
Inheritance: implements Predis\Command\CommandInterface
Show file Open project: nrk/predis Class Usage Examples

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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

create() public static method

Creates a new raw command using a variadic method.
public static create ( string $commandID ) : Predis\Command\CommandInterface
$commandID string Redis command ID.
return Predis\Command\CommandInterface

getArgument() public method

public getArgument ( $index )

getArguments() public method

public getArguments ( )

getId() public method

public getId ( )

getSlot() public method

public getSlot ( )

parseResponse() public method

public parseResponse ( $data )

setArguments() public method

public setArguments ( array $arguments )
$arguments array

setRawArguments() public method

public setRawArguments ( array $arguments )
$arguments array

setSlot() public method

public setSlot ( $slot )