Predis\Connection\AbstractConnection::getIdentifier PHP Méthode

getIdentifier() protected méthode

Gets an identifier for the connection.
protected getIdentifier ( ) : string
Résultat string
    protected function getIdentifier()
    {
        if ($this->parameters->scheme === 'unix') {
            return $this->parameters->path;
        }
        return "{$this->parameters->host}:{$this->parameters->port}";
    }