mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 16:25:14 +00:00
Merge remote-tracking branch 'pedroarnal-master/master'
Conflicts: lib/Resque.php
This commit is contained in:
commit
0ad5903a85
@ -79,7 +79,13 @@ class Resque
|
|||||||
self::$redis = new Resque_RedisCluster($server);
|
self::$redis = new Resque_RedisCluster($server);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (strpos($server, 'unix:') === false) {
|
||||||
list($host, $port) = explode(':', $server);
|
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);
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class Resque_Redis extends Redisent
|
|||||||
'setnx',
|
'setnx',
|
||||||
'incr',
|
'incr',
|
||||||
'incrby',
|
'incrby',
|
||||||
'decrby',
|
'decr',
|
||||||
'decrby',
|
'decrby',
|
||||||
'rpush',
|
'rpush',
|
||||||
'lpush',
|
'lpush',
|
||||||
|
Loading…
Reference in New Issue
Block a user