RedisVersion220
extends RedisProfile
in package
Server profile for Redis 2.2.
Tags
Table of Contents
- $commands : mixed
- $processor : mixed
- __construct() : mixed
- __toString() : string
- Returns the version of server profile as its string representation.
- createCommand() : CommandInterface
- Creates a new command instance.
- defineCommand() : mixed
- Defines a new command in the server profile.
- getCommandClass() : string|null
- Returns the fully-qualified name of a class representing the specified command ID registered in the current server profile.
- getProcessor() : mixed
- {@inheritdoc}
- getSupportedCommands() : array<string|int, mixed>
- Returns a map of all the commands supported by the profile and their actual PHP classes.
- getVersion() : mixed
- {@inheritdoc}
- setProcessor() : mixed
- {@inheritdoc}
- supportsCommand() : bool
- Checks if the profile supports the specified command.
- supportsCommands() : string
- Checks if the profile supports the specified list of commands.
Properties
$commands
private
mixed
$commands
$processor
private
mixed
$processor
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__toString()
Returns the version of server profile as its string representation.
public
__toString() : string
Return values
string —createCommand()
Creates a new command instance.
public
createCommand(mixed $commandID[, array<string|int, mixed> $arguments = array() ]) : CommandInterface
Parameters
- $commandID : mixed
-
Command ID.
- $arguments : array<string|int, mixed> = array()
-
Arguments for the command.
Return values
CommandInterface —defineCommand()
Defines a new command in the server profile.
public
defineCommand(string $commandID, string $class) : mixed
Parameters
- $commandID : string
-
Command ID.
- $class : string
-
Fully-qualified name of a Predis\Command\CommandInterface.
Tags
Return values
mixed —getCommandClass()
Returns the fully-qualified name of a class representing the specified command ID registered in the current server profile.
public
getCommandClass(string $commandID) : string|null
Parameters
- $commandID : string
-
Command ID.
Return values
string|null —getProcessor()
{@inheritdoc}
public
getProcessor() : mixed
Return values
mixed —getSupportedCommands()
Returns a map of all the commands supported by the profile and their actual PHP classes.
public
getSupportedCommands() : array<string|int, mixed>
Return values
array<string|int, mixed> —getVersion()
{@inheritdoc}
public
getVersion() : mixed
Return values
mixed —setProcessor()
{@inheritdoc}
public
setProcessor([ProcessorInterface $processor = null ]) : mixed
Parameters
- $processor : ProcessorInterface = null
Return values
mixed —supportsCommand()
Checks if the profile supports the specified command.
public
supportsCommand(mixed $commandID) : bool
Parameters
- $commandID : mixed
-
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.