Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #27 from iteam-pro/master
Browse files Browse the repository at this point in the history
Fix for Redis auth
  • Loading branch information
wa0x6e committed Dec 19, 2014
2 parents 9284e6a + 6371192 commit cc31229
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Resque/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,15 @@ public function __call($name, $args) {
}
}

class Resque_Redis extends redisApi {}
class Resque_Redis extends redisApi {

public function __construct($host, $port, $password = null)
{
if(is_subclass_of($this, 'Redis')){
parent::__construct($host, $port, 5, $password);
} else {
parent::__construct($host, $port);
}

}
}

0 comments on commit cc31229

Please sign in to comment.