PHP Interface Predis\Command\CommandInterface

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

Public Methods

Method 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 method

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

getArguments() public method

Gets the arguments of the command.
public getArguments ( ) : array
return array

getId() public method

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

getSlot() public method

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

parseResponse() public method

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

setArguments() public method

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

setRawArguments() public method

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

setSlot() public method

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