if (!
property_exists($config, 'file'
)) { $config->file =
[ 'storePath' =>
$config->storePath ?? WRITEPATH . 'cache',
'mode' => 0640,
];
} $this->path = !
empty($config->file
['storePath'
]) ?
$config->file
['storePath'
] : WRITEPATH . 'cache';
$this->path =
rtrim($this->path, '/'
) . '/';
if (!
is_really_writable($this->path
)) { throw CacheException::
forUnableToWrite($this->path
);
} $this->mode =
$config->file
['mode'
] ?? 0640;
$this->prefix =
$config->prefix;
} /**
* {@inheritDoc}
*/
public function initialize() { }