PHP Interface Predis\Command\CommandInterface

Author: Daniele Alessandri ([email protected])
Afficher le fichier Open project: tillkruss/redis-object-cache Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getArgument() public méthode

Gets the argument of the command at the specified index.
public getArgument ( integer $index ) : mixed | null
$index integer Index of the desired argument.
Résultat mixed | null

getArguments() public méthode

Gets the arguments of the command.
public getArguments ( ) : array
Résultat array

getId() public méthode

Returns the ID of the Redis command. By convention, command identifiers must always be uppercase.
public getId ( ) : string
Résultat string

getSlot() public méthode

Returns the assigned slot of the command for clustering distribution.
public getSlot ( ) : integer | null
Résultat integer | null

parseResponse() public méthode

Parses a raw response and returns a PHP object.
public parseResponse ( string $data ) : mixed
$data string Binary string containing the whole response.
Résultat mixed

setArguments() public méthode

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

setRawArguments() public méthode

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

setSlot() public méthode

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