ProfileInterface
in
A profile defines all the features and commands supported by certain versions of Redis. Instances of Predis\Client should use a server profile matching the version of Redis being used.
Tags
Table of Contents
- createCommand() : CommandInterface
- Creates a new command instance.
- getVersion() : string
- Returns the profile version corresponding to the Redis version.
- supportsCommand() : bool
- Checks if the profile supports the specified command.
- supportsCommands() : string
- Checks if the profile supports the specified list of commands.
Methods
createCommand()
Creates a new command instance.
public
createCommand(string $commandID[, array<string|int, mixed> $arguments = array() ]) : CommandInterface
Parameters
- $commandID : string
-
Command ID.
- $arguments : array<string|int, mixed> = array()
-
Arguments for the command.
Return values
CommandInterface —getVersion()
Returns the profile version corresponding to the Redis version.
public
getVersion() : string
Return values
string —supportsCommand()
Checks if the profile supports the specified command.
public
supportsCommand(string $commandID) : bool
Parameters
- $commandID : string
-
Command ID.
Return values
bool —supportsCommands()
Checks if the profile supports the specified list of commands.
public
supportsCommands(array<string|int, mixed> $commandIDs) : string
Parameters
- $commandIDs : array<string|int, mixed>
-
List of command IDs.