public function save($key, $value, $minutesToLive) { if ($this->isReady()) { $this->ciCache->save($key, $value, $minutesToLive); return true; } return false; }
protected function _initialize($config) { parent::_initialize($config); if (!$this->is_supported($this->_adapter) && $this->is_supported($this->_backup_driver)) { // If the main adapter isn't supported, use the backup driver $this->_adapter = $this->_backup_driver; } $CI =& get_instance(); $this->app_id = $CI->config->item('app_id'); }
public function __construct() { parent::__construct(array('adapter' => 'apc')); }