PHP Class Predis\Transaction\MultiExecState

Author: Daniele Alessandri ([email protected])
Mostrar archivo Open project: tillkruss/redis-object-cache Class Usage Examples

Public Methods

Method Description
__construct ( )
check ( integer $flags ) : boolean Returns if the specified flag or set of flags is set.
flag ( integer $flags ) Sets one or more flags.
get ( ) : integer Gets the internal state flags.
isCAS ( ) : boolean Returns the state of the CAS flag.
isDiscarded ( ) : boolean Returns the state of the DISCARDED flag.
isExecuting ( ) : boolean Returns the state of the INSIDEBLOCK flag.
isInitialized ( ) : boolean Returns the state of the INITIALIZED flag.
isReset ( ) : boolean Returns the state of the RESET flag.
isWatchAllowed ( ) : boolean Returns if WATCH is allowed in the current state.
isWatching ( ) : boolean Returns the state of the WATCH flag.
reset ( ) Resets the state of a transaction.
set ( integer $flags ) Sets the internal state flags.
unflag ( integer $flags ) Resets one or more flags.

Method Details

__construct() public method

public __construct ( )

check() public method

Returns if the specified flag or set of flags is set.
public check ( integer $flags ) : boolean
$flags integer Flag
return boolean

flag() public method

Sets one or more flags.
public flag ( integer $flags )
$flags integer Set of flags

get() public method

Gets the internal state flags.
public get ( ) : integer
return integer

isCAS() public method

Returns the state of the CAS flag.
public isCAS ( ) : boolean
return boolean

isDiscarded() public method

Returns the state of the DISCARDED flag.
public isDiscarded ( ) : boolean
return boolean

isExecuting() public method

Returns the state of the INSIDEBLOCK flag.
public isExecuting ( ) : boolean
return boolean

isInitialized() public method

Returns the state of the INITIALIZED flag.
public isInitialized ( ) : boolean
return boolean

isReset() public method

Returns the state of the RESET flag.
public isReset ( ) : boolean
return boolean

isWatchAllowed() public method

Returns if WATCH is allowed in the current state.
public isWatchAllowed ( ) : boolean
return boolean

isWatching() public method

Returns the state of the WATCH flag.
public isWatching ( ) : boolean
return boolean

reset() public method

Resets the state of a transaction.
public reset ( )

set() public method

Sets the internal state flags.
public set ( integer $flags )
$flags integer Set of flags

unflag() public method

Resets one or more flags.
public unflag ( integer $flags )
$flags integer Set of flags