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.
2 parents 8259dc7 + 782d031 commit 0ad5903Copy full SHA for 0ad5903
lib/Resque.php
@@ -79,7 +79,13 @@ public static function redis()
79
self::$redis = new Resque_RedisCluster($server);
80
}
81
else {
82
- list($host, $port) = explode(':', $server);
+ if (strpos($server, 'unix:') === false) {
83
+ list($host, $port) = explode(':', $server);
84
+ }
85
+ else {
86
+ $host = $server;
87
+ $port = null;
88
89
require_once dirname(__FILE__) . '/Resque/Redis.php';
90
self::$redis = new Resque_Redis($host, $port);
91
lib/Resque/Redis.php
@@ -39,7 +39,7 @@ class Resque_Redis extends Redisent
39
'setnx',
40
'incr',
41
'incrby',
42
- 'decrby',
+ 'decr',
43
'decrby',
44
'rpush',
45
'lpush',
0 commit comments