PHP Interface Predis\Command\FactoryInterface

Each Redis command should have a class counterpart and commands factories are used to create new instances of these classes through the library.
Author: Daniele Alessandri ([email protected])
显示文件 Open project: nrk/predis

Public Methods

Method Description
createCommand ( string $commandID, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new command instance.
supportsCommand ( string $commandID ) : boolean Checks if the command factory supports the specified command.
supportsCommands ( array $commandIDs ) : string Checks if the command factory supports the specified list of commands.

Method Details

createCommand() public method

Creates a new command instance.
public createCommand ( string $commandID, array $arguments = [] ) : Predis\Command\CommandInterface
$commandID string Command ID.
$arguments array Arguments for the command.
return Predis\Command\CommandInterface

supportsCommand() public method

Checks if the command factory supports the specified command.
public supportsCommand ( string $commandID ) : boolean
$commandID string Command ID.
return boolean

supportsCommands() public method

Checks if the command factory supports the specified list of commands.
public supportsCommands ( array $commandIDs ) : string
$commandIDs array List of command IDs.
return string