Amp\Parallel\Worker\Environment interface Environment extends ArrayAccess

Summary

Properties

Methods

Methods

exists — public function exists(string $key): bool
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
get — public function get(string $key): mixed|null
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
set — public function set(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 0 for unlimited TTL. null
delete — public function delete(string $key)
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
clear — public function clear()

Removes all values.