Added database parameter in setBackend() to select the database for a connection. The default database is set to 0.

This commit is contained in:
Patrick Bajao 2011-01-17 00:44:17 +08:00 committed by Chris Boulton
parent c67ad8dad8
commit 27beb8cc20

View File

@ -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);
} }
/** /**