ManaPHP\Mvc\Model\Metadata\Adapter\Apc::__construct PHP Метод

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

Apc constructor.
public __construct ( string | array $options = [] )
$options string | array
    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'];
        }
    }