public function __construct($options = [])
{
if (!extension_loaded('apc')) {
throw new ApcException('`apc` is not installed, or the extension is not loaded');
}
if (is_object($options)) {
$options = (array) $options;
}
if (is_string($options)) {
$options['prefix'] = $options;
}
if (isset($options['prefix'])) {
$this->_prefix .= $options['prefix'];
}
if (isset($options['ttl'])) {
$this->_ttl = $options['ttl'];
}
}