src/PartialCache.php
public function getCacheKeyForView($view, $key = null)
    {
        $parts = [$this->cacheKey, $view];

        if ($key !== null) {
            $parts[] = $key;
        }

        return implode('.', $parts);
    }
public function getCacheKeyForView($view, $key = null)
    {
        $parts = [$this->cacheKey, $view];

        if ($key !== null) {
            $parts[] = $key;
        }

        return implode('.', $parts);
    }
public function getCacheKeyForView ( $ view , $ key = null ) { $ parts = [ $ this -> cacheKey , $ view ] ; if ( $ key !== null ) { $ parts [ ] = $ key ; } return implode ( '.' , $ parts ) ; }
Create a key name for the cached view.

@param string $view
@param string $key

@return string
Create a key name for the cached view .