public function __construct(array $options = array()) { if (!isset($options['cacheClusterId'])) { throw new Kwf_Exception('required parameter: cacheClusterId'); } $options['servers'] = Kwf_Util_Aws_ElastiCache_CacheClusterEndpoints::getCached($options['cacheClusterId']); parent::__construct($options); }
/** * Constructor * * @throws Varien_Exception * @param array $options @see Zend_Cache_Backend_Memcached::__construct() */ public function __construct(array $options = array()) { parent::__construct($options); if (!isset($options['slab_size']) || !is_numeric($options['slab_size'])) { if (isset($options['slab_size'])) { throw new Varien_Exception("Invalid value for the node <slab_size>. Expected to be positive integer."); } $this->_options['slab_size'] = self::DEFAULT_SLAB_SIZE; } else { $this->_options['slab_size'] = $options['slab_size']; } }
/** * Constructor * * @param array $options @see \Zend_Cache_Backend_Memcached::__construct() * @throws \Magento\Framework\Exception\LocalizedException */ public function __construct(array $options = []) { parent::__construct($options); if (!isset($options['slab_size']) || !is_numeric($options['slab_size'])) { if (isset($options['slab_size'])) { throw new \Magento\Framework\Exception\LocalizedException(new \Magento\Framework\Phrase("Invalid value for the node <slab_size>. Expected to be positive integer.")); } $this->_options['slab_size'] = self::DEFAULT_SLAB_SIZE; } else { $this->_options['slab_size'] = $options['slab_size']; } }
/** * Constructor. * * @see Zend_Cache_Backend_Memcached::__construct() */ public function __construct($options = array()) { parent::__construct($options); $this->_handle = self::_getPrivateProp($this, "_memcache"); }
/** * @param array $options */ public function __construct(array $options = array()) { $this->_options["tags_do_not_switch_to_innodb"] = null; parent::__construct($options); }