PHP 클래스 Predis\Transaction\MultiExec

저자: Daniele Alessandri ([email protected])
상속: implements Predis\ClientContextInterface
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attempts
$client
$commands
$exceptions
$modeCAS
$watchKeys

공개 메소드들

메소드 설명
__call ( string $method, array $arguments ) : mixed Dynamically invokes a Redis command with the specified arguments.
__construct ( Predis\ClientInterface $client, array $options = null )
discard ( ) : MultiExec 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 ( ) : MultiExec Finalizes the transaction by executing MULTI on the server.
unwatch ( ) : MultiExec Executes UNWATCH.
watch ( string | array $keys ) : mixed Executes WATCH against one or more keys.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

__call() 공개 메소드

Dynamically invokes a Redis command with the specified arguments.
public __call ( string $method, array $arguments ) : mixed
$method string Command ID.
$arguments array Arguments for the command.
리턴 mixed

__construct() 공개 메소드

public __construct ( Predis\ClientInterface $client, array $options = null )
$client Predis\ClientInterface Client instance used by the transaction.
$options array Initialization options.

call() 보호된 메소드

Executes a Redis command bypassing the transaction logic.
protected call ( string $commandID, array $arguments = [] ) : mixed
$commandID string Command ID.
$arguments array Arguments for the command.
리턴 mixed

configure() 보호된 메소드

Configures the transaction using the provided options.
protected configure ( Predis\ClientInterface $client, array $options )
$client Predis\ClientInterface Underlying client instance.
$options array Array of options for the transaction.

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.
public discard ( ) : MultiExec
리턴 MultiExec

exec() 공개 메소드

Executes the whole transaction.
public exec ( ) : mixed
리턴 mixed

execute() 공개 메소드

Handles the actual execution of the whole transaction.
public execute ( mixed $callable = null ) : array
$callable mixed Optional callback for execution.
리턴 array

executeCommand() 공개 메소드

Executes the specified Redis command.
public executeCommand ( Predis\Command\CommandInterface $command )
$command Predis\Command\CommandInterface Command instance.

executeTransactionBlock() 보호된 메소드

Passes the current transaction object to a callable block for execution.
protected executeTransactionBlock ( mixed $callable )
$callable mixed Callback.

initialize() 보호된 메소드

Initializes the transaction context.
protected initialize ( )

multi() 공개 메소드

Finalizes the transaction by executing MULTI on the server.
public multi ( ) : MultiExec
리턴 MultiExec

reset() 보호된 메소드

Resets the state of the transaction.
protected reset ( )

unwatch() 공개 메소드

Executes UNWATCH.
public unwatch ( ) : MultiExec
리턴 MultiExec

watch() 공개 메소드

Executes WATCH against one or more keys.
public watch ( string | array $keys ) : mixed
$keys string | array One or more keys.
리턴 mixed

프로퍼티 상세

$attempts 보호되어 있는 프로퍼티

protected $attempts

$client 보호되어 있는 프로퍼티

protected $client

$commands 보호되어 있는 프로퍼티

protected $commands

$exceptions 보호되어 있는 프로퍼티

protected $exceptions

$modeCAS 보호되어 있는 프로퍼티

protected $modeCAS

$watchKeys 보호되어 있는 프로퍼티

protected $watchKeys