phpredis has some methods named in lowercase, e.g. zinterstore. Code changed to reflect this

This commit is contained in:
Anton Terekhov
2011-12-06 18:40:54 +04:00
parent 5dd50d7a1f
commit e9ddaa6d92
2 changed files with 1 additions and 7 deletions

View File

@ -25,12 +25,6 @@ class RedisDebug
{
$command = $this->r_implode(', ', $arguments);
$profiler = Profiler::getInstance()->profilerCommand('Redis->' . $name, $command);
$search = array_search($name, get_class_methods($this->redis));
if (empty($search)) {
throw new GeneralException('undefined method:'.$name);
}
$data = call_user_func_array(array($this->redis, $name), $arguments);
$profiler->end();
return $data;