ManaPHP\Cache\Adapter\Apc::__construct PHP Метод

__construct() публичный Метод

Apc constructor.
public __construct ( string | array $options = [] )
$options string | array
    public function __construct($options = [])
    {
        if (!function_exists('apc_exists')) {
            throw new ApcException('apc extension is not loaded: http://pecl.php.net/package/APCu');
        }
        if (!ini_get('apc.enable_cli')) {
            throw new ApcException('apc.enable_cli=0, please enable it.');
        }
        if (is_object($options)) {
            $options = (array) $options;
        } elseif (is_string($options)) {
            $options = ['prefix' => $options];
        }
        if (isset($options['prefix'])) {
            $this->_prefix = $options['prefix'];
        }
    }