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
Afficher le fichier Open project: nrk/predis Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

create() public static méthode

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

getArgument() public méthode

public getArgument ( $index )

getArguments() public méthode

public getArguments ( )

getId() public méthode

public getId ( )

getSlot() public méthode

public getSlot ( )

parseResponse() public méthode

public parseResponse ( $data )

setArguments() public méthode

public setArguments ( array $arguments )
$arguments array

setRawArguments() public méthode

public setRawArguments ( array $arguments )
$arguments array

setSlot() public méthode

public setSlot ( $slot )