Author: EllisLab Dev Team
Inheritance: extends CI_Driver_Library
Example #1
0
 public function save($key, $value, $minutesToLive)
 {
     if ($this->isReady()) {
         $this->ciCache->save($key, $value, $minutesToLive);
         return true;
     }
     return false;
 }
Example #2
0
 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');
 }
Example #3
0
 public function __construct()
 {
     parent::__construct(array('adapter' => 'apc'));
 }