From 27beb8cc20a8a2ea1a69813c3bc08786d0f6e347 Mon Sep 17 00:00:00 2001 From: Patrick Bajao Date: Mon, 17 Jan 2011 00:44:17 +0800 Subject: [PATCH] Added database parameter in setBackend() to select the database for a connection. The default database is set to 0. --- lib/Resque.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Resque.php b/lib/Resque.php index 168d849..c28a889 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -37,6 +37,8 @@ class Resque require_once dirname(__FILE__) . '/Resque/Redis.php'; self::$redis = new Resque_Redis($host, $port); } + + self::redis()->select($database); } /**