/** * Create new cache instance. * * @param array $options */ public function __construct(array $options) { parent::__construct($options); if (!($dir = realpath($this->options['cache_dir']))) { throw new Exception(sprintf('Cache directory "%s" is not exists.', $this->options['cache_dir'])); } $this->options['cache_dir'] = $dir . DIRECTORY_SEPARATOR; }
/** * Create new memcache instance */ public function __construct(array $options = array()) { parent::__construct($options); }