PHP Interface Predis\Profile\ProfileInterface

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

Méthodes publiques

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

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

getVersion() public méthode

Returns the profile version corresponding to the Redis version.
public getVersion ( ) : string
Résultat string

supportsCommand() public méthode

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

supportsCommands() public méthode

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