Свойство | Type | Description | |
---|---|---|---|
$attempts | |||
$client | |||
$commands | |||
$exceptions | |||
$modeCAS | |||
$watchKeys |
Méthode | Description | |
---|---|---|
__call ( string $method, array $arguments ) : mixed | Dynamically invokes a Redis command with the specified arguments. | |
__construct ( Predis\ClientInterface $client, array $options = null ) | ||
discard ( ) : |
Resets the transaction by UNWATCH-ing the keys that are being WATCHed and DISCARD-ing pending commands that have been already sent to the server. | |
exec ( ) : mixed | Executes the whole transaction. | |
execute ( mixed $callable = null ) : array | Handles the actual execution of the whole transaction. | |
executeCommand ( Predis\Command\CommandInterface $command ) | Executes the specified Redis command. | |
multi ( ) : |
Finalizes the transaction by executing MULTI on the server. | |
unwatch ( ) : |
Executes UNWATCH. | |
watch ( string | array $keys ) : mixed | Executes WATCH against one or more keys. |
Méthode | Description | |
---|---|---|
call ( string $commandID, array $arguments = [] ) : mixed | Executes a Redis command bypassing the transaction logic. | |
configure ( Predis\ClientInterface $client, array $options ) | Configures the transaction using the provided options. | |
executeTransactionBlock ( mixed $callable ) | Passes the current transaction object to a callable block for execution. | |
initialize ( ) | Initializes the transaction context. | |
reset ( ) | Resets the state of the transaction. |
Méthode | Description | |
---|---|---|
assertClient ( Predis\ClientInterface $client ) | Checks if the passed client instance satisfies the required conditions needed to initialize the transaction object. | |
checkBeforeExecution ( mixed $callable ) | Checks the state of the transaction before execution. | |
onProtocolError ( string $message ) | Helper method for protocol errors encountered inside the transaction. |
public __construct ( Predis\ClientInterface $client, array $options = null ) | ||
$client | Predis\ClientInterface | Client instance used by the transaction. |
$options | array | Initialization options. |
public discard ( ) : |
||
Résultat |
public executeCommand ( Predis\Command\CommandInterface $command ) | ||
$command | Predis\Command\CommandInterface | Command instance. |
protected executeTransactionBlock ( mixed $callable ) | ||
$callable | mixed | Callback. |
public multi ( ) : |
||
Résultat |