Icicle\Concurrent\Worker\Environment::set PHP Method

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.
    public function set(string $key, $value, int $ttl = 0);