public function testConfig($config)
{
if (!isset($config['path'])) {
$config['path'] = $this->cacheDir . '/object-cache/';
}
if (!file_exists($config['path']) && !mkdir($config['path'])) {
throw new \Exception('Can not create cache folder: ' . $config['path']);
}
return true;
}