mirror of
https://github.com/predis/predis.git
synced 2026-10-08 12:57:14 +00:00
Some commands accepting multiple keys can be hashed if all the keys return the same hash (key tags).
List of the commands affected by this change (based on Redis 2.2):
MSET, MGET, DEL, BLPOP, BRPOP, RPOPLPUSH, BRPOPLPUSH, SINTER, SINTERSTORE,
SUNION, SUNIONSTORE, SDIFF, SDIFFSTORE, ZINTERSTORE, ZUNIONSTORE.
This commit is contained in:
@@ -5,7 +5,9 @@ namespace Predis\Commands;
|
||||
use Predis\Utils;
|
||||
|
||||
class SetIntersectionStore extends Command {
|
||||
protected function canBeHashed() { return false; }
|
||||
protected function canBeHashed() {
|
||||
return $this->checkSameHashForKeys($this->getArguments());
|
||||
}
|
||||
public function getId() { return 'SINTERSTORE'; }
|
||||
public function filterArguments(Array $arguments) {
|
||||
return Utils::filterArrayArguments($arguments);
|
||||
|
||||
Reference in New Issue
Block a user