private function compileCacheFile(ParsedClass $parsedClass, $version)
    {
        $compileArray = [];
        $compileArray['class'] = $parsedClass->class;
        $compileArray['cacheKeyInterface'] = $parsedClass->cacheKeyInterface;
        $compileArray['accessInterface'] = $parsedClass->accessInterface;
        $compileArray['version'] = $version;


        foreach ($parsedClass->parsedMethods as $m) {
            $compileArray[$m->method][$m->urlPattern] = [
                'default'         => $m->default,
                'role'            => ($m->role) ? $m->role : false,
                'method'          => $m->name,
                'urlPattern'      => $m->urlPattern,
                'resourceNaming'  => $m->resourceNaming,
                'cache'           => $m->cache,
                'header'          => $m->header,
                'rateControl'     => $m->rateControl,
                'params'          => []
            ];

            foreach ($m->params as $p) {
                $compileArray[$m->method][$m->urlPattern]['params'][$p->name] = [
                    'required' => $p->required,
                    'type'     => $p->type,
                    'default'  => $p->default,
                    'pattern'  => $p->matchPattern
                ];
            }
        }

        return $compileArray;
    }