Rewrite the logic used to handle Redis commands with clustering.

The reason for this change is to support the upcoming redis-cluster since
it has different behaviors compared to the client-side cluster implementation
provided by Predis. For example redis-cluster will not support key tags or
certain operations currently available with our client-side implementation.
This commit is contained in:
Daniele Alessandri
2012-02-25 15:27:20 +01:00
parent 56a3e327fc
commit 511fe0bbab
55 changed files with 653 additions and 543 deletions
-14
View File
@@ -79,18 +79,4 @@ class HelpersTest extends StandardTestCase
$arguments = array(new \stdClass());
$this->assertSame($arguments, Helpers::filterArrayArguments($arguments));
}
/**
* @group disconnected
*/
public function testExtractKeyTag()
{
$this->assertEquals('foo:bar', Helpers::extractKeyTag('foo:bar'));
$this->assertEquals('foo:', Helpers::extractKeyTag('{foo:}bar'));
$this->assertEquals('bar', Helpers::extractKeyTag('foo:{bar}'));
$this->assertEquals('foo:bar', Helpers::extractKeyTag('{foo:bar}'));
$this->assertEquals('', Helpers::extractKeyTag('foo{}:bar'));
$this->assertEquals('', Helpers::extractKeyTag(''));
$this->assertEquals('', Helpers::extractKeyTag('{}'));
}
}