PHP Class Icicle\Concurrent\Worker\BasicEnvironment

Inheritance: implements Icicle\Concurrent\Worker\Environment
Datei anzeigen Open project: icicleio/concurrent

Public Methods

Method 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 method

public __construct ( )

clear() public method

Removes all values.
public clear ( )

count() public method

public count ( ) : integer
return integer

delete() public method

public delete ( string $key )
$key string

exists() public method

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

get() public method

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

offsetExists() public method

Alias of exists().
public offsetExists ( $key ) : boolean
$key
return boolean

offsetGet() public method

Alias of get().
public offsetGet ( string $key ) : mixed
$key string
return mixed

offsetSet() public method

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

offsetUnset() public method

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

set() public method

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.