src/Cache/Cache.php
private function resolvePath($key, $createDir = true): string
    {
        $hash = self::createKeyHash($key);
        $path = $this->cachePath.$this->cacheName.'/';
        for ($i = 0; $i < self::CACHE_LEVEL; $i++) {
            $path .= substr($hash, 2 * ($i), 2).'/';
            if ($createDir && !is_dir($path)) {
                mkdir($path);
            }
        }

        return $path.$hash;
    }
private function resolvePath($key, $createDir = true): string
    {
        $hash = self::createKeyHash($key);
        $path = $this->cachePath.$this->cacheName.'/';
        for ($i = 0; $i < self::CACHE_LEVEL; $i++) {
            $path .= substr($hash, 2 * ($i), 2).'/';
            if ($createDir && !is_dir($path)) {
                mkdir($path);
            }
        }

        return $path.$hash;
    }
private function resolvePath ( $ key , $ createDir = true ) : string { $ hash = self :: createKeyHash ( $ key ) ; $ path = $ this -> cachePath . $ this -> cacheName . '/' ; for ( $ i = 0 ; $ i < self :: CACHE_LEVEL ; $ i ++ ) { $ path .= substr ( $ hash , 2 * ( $ i ) , 2 ) . '/' ; if ( $ createDir && ! is_dir ( $ path ) ) { mkdir ( $ path ) ; } } return $ path . $ hash ; }
Resolves the path for a cache key.

@param string $key
@param bool   $createDir
@return string
Resolves the path for a cache key .