PHP Class NinjaMutex\Tests\Mock\MockMemcached

Author: Kamil Dziedzic ([email protected])
Inheritance: implements NinjaMutex\Tests\Mock\PermanentServiceInterface
Afficher le fichier Open project: arvenil/ninja-mutex

Protected Properties

Свойство Type Description
$available boolean Whether the service is available
$data string[]

Méthodes publiques

Méthode 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 méthode

public __construct ( )

add() public méthode

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
Résultat boolean

delete() public méthode

public delete ( string $key, null $time = null ) : boolean
$key string
$time null
Résultat boolean

get() public méthode

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
Résultat boolean | mixed | string

setAvailable() public méthode

public setAvailable ( boolean $available )
$available boolean

Property Details

$available protected_oe property

Whether the service is available
protected bool $available
Résultat boolean

$data protected_oe static_oe property

protected static string[] $data
Résultat string[]