mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 16:25:14 +00:00
Modified setBackend() to accept as the second parameter
This commit is contained in:
parent
27beb8cc20
commit
863099564e
@ -26,7 +26,7 @@ class Resque
|
|||||||
* @param mixed $server Host/port combination separated by a colon, or
|
* @param mixed $server Host/port combination separated by a colon, or
|
||||||
* a nested array of servers with host/port pairs.
|
* a nested array of servers with host/port pairs.
|
||||||
*/
|
*/
|
||||||
public static function setBackend($server)
|
public static function setBackend($server, $database = 0)
|
||||||
{
|
{
|
||||||
if(is_array($server)) {
|
if(is_array($server)) {
|
||||||
require_once dirname(__FILE__) . '/Resque/RedisCluster.php';
|
require_once dirname(__FILE__) . '/Resque/RedisCluster.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user