PHP Interface Predis\Profile\ProfileInterface

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

Public Methods

Method Description
createCommand ( string $commandID, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new command instance.
getVersion ( ) : string Returns the profile version corresponding to the Redis version.
supportsCommand ( string $commandID ) : boolean Checks if the profile supports the specified command.
supportsCommands ( array $commandIDs ) : string Checks if the profile 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

getVersion() public method

Returns the profile version corresponding to the Redis version.
public getVersion ( ) : string
return string

supportsCommand() public method

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

supportsCommands() public method

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