PHP Class NinjaMutex\Tests\Mock\MockPhpRedisClient

Author: leo108 ([email protected])
Inheritance: extends Redi\Redis, implements NinjaMutex\Tests\Mock\PermanentServiceInterface
Show file Open project: arvenil/ninja-mutex

Protected Properties

Property Type Description
$available boolean Whether the service is available
$data string[]

Public Methods

Method Description
__construct ( )
del ( string $key ) : boolean
get ( string $key ) : mixed
setAvailable ( boolean $available )
setnx ( string $key, mixed $value ) : boolean

Method Details

__construct() public method

public __construct ( )

del() public method

public del ( string $key ) : boolean
$key string
return boolean

get() public method

public get ( string $key ) : mixed
$key string
return mixed

setAvailable() public method

public setAvailable ( boolean $available )
$available boolean

setnx() public method

public setnx ( string $key, mixed $value ) : boolean
$key string
$value mixed
return boolean

Property Details

$available protected property

Whether the service is available
protected bool $available
return boolean

$data protected static property

protected static string[] $data
return string[]