Author: EllisLab Dev Team
Inheritance: extends CI_Driver_Library
コード例 #1
0
ファイル: CICache.php プロジェクト: fucoso/site
 public function save($key, $value, $minutesToLive)
 {
     if ($this->isReady()) {
         $this->ciCache->save($key, $value, $minutesToLive);
         return true;
     }
     return false;
 }
コード例 #2
0
ファイル: MY_Cache.php プロジェクト: rip-projects/ark-php
 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');
 }
コード例 #3
0
ファイル: MY_Cache.php プロジェクト: siburny/stats
 public function __construct()
 {
     parent::__construct(array('adapter' => 'apc'));
 }