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

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

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