PHP Class NinjaMutex\Tests\Mock\MockMemcached

Author: Kamil Dziedzic ([email protected])
Inheritance: 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 ( )
add ( string $key, mixed $value, integer | null $expiration = null, null &$udf_flags = null ) : boolean
delete ( string $key, null $time = null ) : boolean
get ( string $key, null $cache_cb = null, null &$cas_token = null, null &$udf_flags = null ) : boolean | mixed | string
setAvailable ( boolean $available )

Method Details

__construct() public method

public __construct ( )

add() public method

public add ( string $key, mixed $value, integer | null $expiration = null, null &$udf_flags = null ) : boolean
$key string
$value mixed
$expiration integer | null
$udf_flags null
return boolean

delete() public method

public delete ( string $key, null $time = null ) : boolean
$key string
$time null
return boolean

get() public method

public get ( string $key, null $cache_cb = null, null &$cas_token = null, null &$udf_flags = null ) : boolean | mixed | string
$key string
$cache_cb null
$cas_token null
$udf_flags null
return boolean | mixed | string

setAvailable() public method

public setAvailable ( boolean $available )
$available 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[]