mirror of
https://github.com/predis/predis.git
synced 2026-08-24 15:39:28 +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:
@@ -52,19 +52,4 @@ class StringSetMultiple extends AbstractCommand implements PrefixableCommandInte
|
||||
{
|
||||
PrefixHelpers::interleaved($this, $prefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function canBeHashed()
|
||||
{
|
||||
$args = $this->getArguments();
|
||||
$keys = array();
|
||||
|
||||
for ($i = 0; $i < count($args); $i += 2) {
|
||||
$keys[] = $args[$i];
|
||||
}
|
||||
|
||||
return $this->checkSameHashForKeys($keys);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user