Amp\Parallel\Worker\Environment interfaceEnvironment extendsArrayAccess

Summary

Properties

Methods

Methods

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 0 for unlimited TTL. null
delete —public functiondelete(string$key)
No documentation.
Type Parameter Description Default Value
string $key No documentation. none
clear —public functionclear()

Removes all values.