PHP Class Icicle\Concurrent\Worker\BasicEnvironment

Inheritance: implements Icicle\Concurrent\Worker\Environment
Afficher le fichier Open project: icicleio/concurrent

Méthodes publiques

Méthode Description
__construct ( )
clear ( ) Removes all values.
count ( ) : integer
delete ( string $key )
exists ( string $key ) : boolean
get ( string $key ) : mixed | null
offsetExists ( $key ) : boolean Alias of exists().
offsetGet ( string $key ) : mixed Alias of get().
offsetSet ( string $key, mixed $value ) Alias of set() with $ttl = 0.
offsetUnset ( string $key ) Alias of delete().
set ( string $key, mixed $value, integer $ttl )

Method Details

__construct() public méthode

public __construct ( )

clear() public méthode

Removes all values.
public clear ( )

count() public méthode

public count ( ) : integer
Résultat integer

delete() public méthode

public delete ( string $key )
$key string

exists() public méthode

public exists ( string $key ) : boolean
$key string
Résultat boolean

get() public méthode

public get ( string $key ) : mixed | null
$key string
Résultat mixed | null Returns null if the key does not exist.

offsetExists() public méthode

Alias of exists().
public offsetExists ( $key ) : boolean
$key
Résultat boolean

offsetGet() public méthode

Alias of get().
public offsetGet ( string $key ) : mixed
$key string
Résultat mixed

offsetSet() public méthode

Alias of set() with $ttl = 0.
public offsetSet ( string $key, mixed $value )
$key string
$value mixed

offsetUnset() public méthode

Alias of delete().
public offsetUnset ( string $key )
$key string

set() public méthode

public set ( string $key, mixed $value, integer $ttl )
$key string
$value mixed Using null for the value deletes the key.
$ttl integer Number of seconds until data is automatically deleted. Use 0 for unlimited TTL.