ServerInfoV26x
extends ServerInfo
in package
Base class for Redis commands.
Tags
Table of Contents
- $arguments : mixed
- $slot : mixed
- getArgument() : mixed|null
- Gets the argument of the command at the specified index.
- getArguments() : array<string|int, mixed>
- Gets the arguments of the command.
- getId() : mixed
- {@inheritdoc}
- getSlot() : int|null
- Returns the assigned slot of the command for clustering distribution.
- normalizeArguments() : array<string|int, mixed>
- Normalizes the arguments array passed to a Redis command.
- normalizeVariadic() : array<string|int, mixed>
- Normalizes the arguments array passed to a variadic Redis command.
- parseResponse() : mixed
- Parses a raw response and returns a PHP object.
- setArguments() : mixed
- Sets the arguments for the command.
- setRawArguments() : mixed
- Sets the raw arguments for the command without processing them.
- setSlot() : mixed
- Assign the specified slot to the command for clustering distribution.
- filterArguments() : array<string|int, mixed>
- Returns a filtered array of the arguments.
- parseAllocationStats() : array<string|int, mixed>
- Parses the response and extracts the allocation statistics.
- parseDatabaseStats() : array<string|int, mixed>
- Extracts the statistics of each logical DB from the string buffer.
- parseRow() : array<string|int, mixed>
- Parses a single row of the response and returns the key-value pair.
Properties
$arguments
private
mixed
$arguments
= array()
$slot
private
mixed
$slot
Methods
getArgument()
Gets the argument of the command at the specified index.
public
getArgument(mixed $index) : mixed|null
Parameters
- $index : mixed
-
Index of the desired argument.
Return values
mixed|null —getArguments()
Gets the arguments of the command.
public
getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed> —getId()
{@inheritdoc}
public
getId() : mixed
Return values
mixed —getSlot()
Returns the assigned slot of the command for clustering distribution.
public
getSlot() : int|null
Return values
int|null —normalizeArguments()
Normalizes the arguments array passed to a Redis command.
public
static normalizeArguments(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
-
Arguments for a command.
Return values
array<string|int, mixed> —normalizeVariadic()
Normalizes the arguments array passed to a variadic Redis command.
public
static normalizeVariadic(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
-
Arguments for a command.
Return values
array<string|int, mixed> —parseResponse()
Parses a raw response and returns a PHP object.
public
parseResponse(mixed $data) : mixed
Parameters
- $data : mixed
-
Binary string containing the whole response.
Return values
mixed —setArguments()
Sets the arguments for the command.
public
setArguments(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
-
List of arguments.
Return values
mixed —setRawArguments()
Sets the raw arguments for the command without processing them.
public
setRawArguments(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
-
List of arguments.
Return values
mixed —setSlot()
Assign the specified slot to the command for clustering distribution.
public
setSlot(mixed $slot) : mixed
Parameters
- $slot : mixed
-
Slot ID.
Return values
mixed —filterArguments()
Returns a filtered array of the arguments.
protected
filterArguments(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
-
List of arguments.
Return values
array<string|int, mixed> —parseAllocationStats()
Parses the response and extracts the allocation statistics.
protected
parseAllocationStats(string $str) : array<string|int, mixed>
Parameters
- $str : string
-
Response buffer.
Return values
array<string|int, mixed> —parseDatabaseStats()
Extracts the statistics of each logical DB from the string buffer.
protected
parseDatabaseStats(string $str) : array<string|int, mixed>
Parameters
- $str : string
-
Response buffer.
Return values
array<string|int, mixed> —parseRow()
Parses a single row of the response and returns the key-value pair.
protected
parseRow(string $row) : array<string|int, mixed>
Parameters
- $row : string
-
Single row of the response.