mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 16:25:14 +00:00
Enabling use of unix sockets on Redis backend.
This commit is contained in:
parent
4700375d25
commit
0ac835a630
@ -33,7 +33,13 @@ class Resque
|
|||||||
self::$redis = new Resque_RedisCluster($server);
|
self::$redis = new Resque_RedisCluster($server);
|
||||||
}
|
}
|
||||||
else {
|
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';
|
require_once dirname(__FILE__) . '/Resque/Redis.php';
|
||||||
self::$redis = new Resque_Redis($host, $port);
|
self::$redis = new Resque_Redis($host, $port);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user