Amp\Parallel\Worker\BasicEnvironment classBasicEnvironment implementsAmp\Parallel\Worker\Environment

Summary

Properties

Methods

Properties

$data —public $data
No documentation.
$expire —public $expire =0
No documentation.
$ttl —public $ttl
No documentation.

Methods

__construct —public function__construct()
No documentation.
exists —public functionexists(string$key):bool
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
get —public functionget(string$key):mixed|null
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
set —public functionset(string$key,mixed$value,int$ttl =null)
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
mixed $value Using null for the value deletes the key. none
int $ttl Number of seconds until data is automatically deleted. Use null for unlimited TTL. null
delete —public functiondelete(string$key)
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
offsetExists —public functionoffsetExists($key):bool

Alias of exists().

Type Parameter Description Default Value
mixed $key No documentation. none
offsetGet —public functionoffsetGet(string$key):mixed

Alias of get().

Type Parameter Description Default Value
string $key No documentation. none
offsetSet —public functionoffsetSet(string$key,mixed$value)

Alias of set() with $ttl = null.

Type Parameter Description Default Value
string $key No documentation. none
mixed $value No documentation. none
offsetUnset —public functionoffsetUnset(string$key)

Alias of delete().

Type Parameter Description Default Value
string $key No documentation. none
clear —public functionclear()

Removes all values.

__get —public function__get(string$property)
No documentation.
Type Parameter Description Default Value
string $property No documentation. none
__set —public function__set(string$property,$value)
No documentation.
Type Parameter Description Default Value
string $property No documentation. none
mixed $value No documentation. none