StringSetPreserve
extends Command
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.
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.