Méthode |
Description |
|
__call ( string $name, mixed $arguments ) : mixed |
very very dumb proxy to redis connection. should only be used for testing. |
|
__construct ( string $host = '127.0.0.1', integer $port = 6379, float $timeout, string $reserved = null, integer $retry = null ) |
The constructor accepts default connection parameters. |
|
__destruct ( ) |
do some cleanup |
|
__toString ( ) |
|
|
addHistory ( Identifier $identifier, $state, $message = null, $is_exception = false ) |
{@inheritDoc} |
|
getConfigurationKey ( ) : string |
get the configuration key used for storing a json string of machine configurations. |
|
getEntityIds ( $machine, $state = null ) |
{@inheritDoc} |
|
getPrefix ( ) : string |
get the prefix for all keys used |
|
getRedis ( ) : Redis |
Gets a lazy loaded \Redis instance that is connected and optionally authenticated. |
|
insertState ( Identifier $identifier, $state, $message = null ) |
{@inheritDoc} |
|
isPersisted ( Identifier $identifier ) |
{@inheritDoc} |
|
load ( StateMachine $statemachine ) |
{@inheritDoc}
Load the statemachine with data from a JSON string. |
|
processGetState ( Identifier $identifier ) |
{@inheritDoc} |
|
setConfigurationKey ( string $key ) |
set the configuration key to be used for storing a json string of machine configurations. |
|
setConnection ( Redis $redis ) |
set the redis connection explicitely, useful if you want to share the
redis instance when it is created outside this class. |
|
setDatabase ( integer $database ) |
set the redis database. in case there is an active connection, it switches the database. |
|
setPassword ( string $password ) |
set password to authenticate to the redis server |
|
setPrefix ( string $prefix ) |
set the key prefix to be used for all redis keys |
|
setUnixDomainSocket ( $socket ) |
|
|
toString ( ) |
|
|
updateState ( Identifier $identifier, $state, $message = null ) |
{@inheritDoc} |
|