Predis\Cluster\ClusterStrategy::getKeyFromZsetAggregationCommands PHP Метод

getKeyFromZsetAggregationCommands() защищенный Метод

Extracts the key from ZINTERSTORE and ZUNIONSTORE commands.
protected getKeyFromZsetAggregationCommands ( Predis\Command\CommandInterface $command ) : string | null
$command Predis\Command\CommandInterface Command instance.
Результат string | null
    protected function getKeyFromZsetAggregationCommands(CommandInterface $command)
    {
        $arguments = $command->getArguments();
        $keys = array_merge(array($arguments[0]), array_slice($arguments, 2, $arguments[1]));
        if ($this->checkSameSlotForKeys($keys)) {
            return $arguments[0];
        }
    }