public function gc() {
        $files = glob($this->getConfig('cacheDir') . '/*', GLOB_MARK);
        $cachetime = $this->getConfig('cacheTime');
        foreach ($files as $file) {
            if(time() - $cachetime > fileatime($file))
                unlink($file);
        }
    }