We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4700375 commit 0ac835aCopy full SHA for 0ac835a
lib/Resque.php
@@ -33,7 +33,13 @@ public static function setBackend($server, $database = 0)
33
self::$redis = new Resque_RedisCluster($server);
34
}
35
else {
36
- list($host, $port) = explode(':', $server);
+ if (strpos($server, 'unix:') === false) {
37
+ list($host, $port) = explode(':', $server);
38
+ }
39
+ else {
40
+ $host = $server;
41
+ $port = null;
42
43
require_once dirname(__FILE__) . '/Resque/Redis.php';
44
self::$redis = new Resque_Redis($host, $port);
45
0 commit comments