Modified setBackend() to accept as the second parameter

This commit is contained in:
Patrick Bajao 2011-01-17 01:15:31 +08:00 committed by Chris Boulton
parent 27beb8cc20
commit 863099564e

View File

@ -26,7 +26,7 @@ class Resque
* @param mixed $server Host/port combination separated by a colon, or
* 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)) {
require_once dirname(__FILE__) . '/Resque/RedisCluster.php';