mirror of
https://github.com/predis/predis.git
synced 2026-10-09 13:26:57 +00:00
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:
@@ -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('{}'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user