mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 13:42:22 +00:00
WIP
This commit is contained in:
parent
e541fa9b70
commit
b8f98eecd2
7 changed files with 150 additions and 102 deletions
|
@ -143,7 +143,13 @@ class Resque_Redis
|
|||
*/
|
||||
public function __call($name, $args) {
|
||||
if(in_array($name, $this->keyCommands)) {
|
||||
$args[0] = self::$defaultNamespace . $args[0];
|
||||
if(is_array($args[0])) {
|
||||
foreach($args[0] AS $i => $v) {
|
||||
$args[0][$i] = self::$defaultNamespace . $v;
|
||||
}
|
||||
} else {
|
||||
$args[0] = self::$defaultNamespace . $args[0];
|
||||
}
|
||||
}
|
||||
try {
|
||||
return $this->driver->__call($name, $args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue