mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
replace Redisent with Credis (also adds native phpredis support)
This commit is contained in:
parent
a6eb8e1c45
commit
2ba15eb555
11 changed files with 81 additions and 919 deletions
|
@ -15,7 +15,7 @@ class Resque_Tests_TestCase extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
$config = file_get_contents(REDIS_CONF);
|
||||
preg_match('#^\s*port\s+([0-9]+)#m', $config, $matches);
|
||||
$this->redis = new Redisent('localhost', $matches[1]);
|
||||
$this->redis = new Credis_Client('localhost', $matches[1]);
|
||||
|
||||
// Flush redis
|
||||
$this->redis->flushAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue