public function __call($methodName, $params)
{
// what are we doing?
$log = usingLog()->startAction(["run redis command", $methodName, "with params:", $params]);
// do we have such a redis call?
if (!method_exists($this->args[0], $methodName)) {
throw new E5xx_ActionFailed(__METHOD__, "no such redis command '{$methodName}'");
}
// make the call
try {
$return = call_user_method_array($methodName, $this->args[0], $params);
// all done
$log->endAction($return);
return $return;
} catch (Exception $e) {
throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
}
}