Platformsh\Cli\Api::setUpCache PHP Method

setUpCache() protected method

protected setUpCache ( )
    protected function setUpCache()
    {
        if (!isset(self::$cache)) {
            if (!empty($this->config->get('api.disable_cache'))) {
                self::$cache = new VoidCache();
            } else {
                self::$cache = new FilesystemCache($this->config->getUserConfigDir() . '/cache', FilesystemCache::EXTENSION, 077);
            }
        }
    }