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

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

..}"), or the whole key if a key tag is not found in the string.
protected extractKeyTag ( string $key ) : string
$key string A key.
Результат string
    protected function extractKeyTag($key)
    {
        if (false !== ($start = strpos($key, '{'))) {
            if (false !== ($end = strpos($key, '}', $start)) && $end !== ++$start) {
                $key = substr($key, $start, $end - $start);
            }
        }
        return $key;
    }