mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 16:25:14 +00:00
Added database parameter in setBackend() to select the database for a connection. The default database is set to 0.
This commit is contained in:
parent
c67ad8dad8
commit
27beb8cc20
@ -37,6 +37,8 @@ class Resque
|
|||||||
require_once dirname(__FILE__) . '/Resque/Redis.php';
|
require_once dirname(__FILE__) . '/Resque/Redis.php';
|
||||||
self::$redis = new Resque_Redis($host, $port);
|
self::$redis = new Resque_Redis($host, $port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self::redis()->select($database);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user