mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
Passing pipelines
This commit is contained in:
parent
deb9af2781
commit
1b044f2b7d
4 changed files with 12 additions and 36 deletions
|
@ -121,7 +121,6 @@ class Resque_Redis
|
|||
} else {
|
||||
list($host, $port, $dsnDatabase, $user, $password, $options) = self::parseDsn($server);
|
||||
// $user is not used, only $password
|
||||
|
||||
$timeout = isset($options['timeout']) ? intval($options['timeout']) : null;
|
||||
|
||||
$this->redisConnection = new Redis();
|
||||
|
@ -231,6 +230,7 @@ class Resque_Redis
|
|||
* @param string $name The name of the method called.
|
||||
* @param array $args Array of supplied arguments to the method.
|
||||
* @return mixed Return value from Resident::call() based on the command.
|
||||
* @throws Resque_RedisException
|
||||
*/
|
||||
public function __call($name, $args)
|
||||
{
|
||||
|
@ -239,10 +239,16 @@ class Resque_Redis
|
|||
foreach ($args[0] AS $i => $v) {
|
||||
$args[0][$i] = self::$defaultNamespace . $v;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$args[0] = self::$defaultNamespace . $args[0];
|
||||
}
|
||||
}
|
||||
try {
|
||||
return call_user_func_array(array($this->redisConnection, $name), $args);
|
||||
} catch (Exception $e) {
|
||||
throw new Resque_RedisException('Error communicating with Redis: ' . $e->getMessage(), 0, $e);
|
||||
}
|
||||
}
|
||||
|
||||
public static function getPrefix()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue