public function __construct($options = []) { if (is_string($options) || is_object($options)) { $options = ['adapter' => $options]; } if (isset($options['adapter'])) { $this->adapter = $options['adapter']; } if (isset($options['prefix'])) { $this->_prefix = $options['prefix']; } }