public function createFunction($args, $body, $ttl = null)
{
$key = $args . "" . $body;
if (($f = $this->lambdaCache->getValue($key)) !== null) {
return $f;
}
$f = eval('return function(' . $args . '){' . $body . '};');
if ($ttl === null && Daemon::$config->lambdacachettl->value) {
$ttl = Daemon::$config->lambdacachettl->value;
}
$this->lambdaCache->put($key, $f, $ttl);
return $f;
}