From 0ac835a630e5081af6bcfe1e6a9a26814b1cb9d1 Mon Sep 17 00:00:00 2001 From: pedroarnal Date: Wed, 25 Jan 2012 00:46:34 +0100 Subject: [PATCH 1/2] Enabling use of unix sockets on Redis backend. --- lib/Resque.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Resque.php b/lib/Resque.php index d0be465..f4dbbd9 100644 --- a/lib/Resque.php +++ b/lib/Resque.php @@ -33,7 +33,13 @@ class Resque self::$redis = new Resque_RedisCluster($server); } else { - list($host, $port) = explode(':', $server); + if (strpos($server, 'unix:') === false) { + list($host, $port) = explode(':', $server); + } + else { + $host = $server; + $port = null; + } require_once dirname(__FILE__) . '/Resque/Redis.php'; self::$redis = new Resque_Redis($host, $port); } From 782d0317e630a18a343ae958626d79cad2bbe2b4 Mon Sep 17 00:00:00 2001 From: pedroarnal Date: Sat, 18 Feb 2012 17:10:06 +0100 Subject: [PATCH 2/2] Update lib/Resque/Redis.php --- lib/Resque/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Redis.php b/lib/Resque/Redis.php index 0a6908f..b6d7522 100644 --- a/lib/Resque/Redis.php +++ b/lib/Resque/Redis.php @@ -39,7 +39,7 @@ class Resque_Redis extends Redisent 'setnx', 'incr', 'incrby', - 'decrby', + 'decr', 'decrby', 'rpush', 'lpush',