KumbiaPHP beta2-dev
Framework PHP en español
|
00001 <?php 00027 require_once CORE_PATH . 'libs/cache/drivers/sqlite_cache.php'; 00028 00029 class MemSqliteCache extends SqliteCache 00030 { 00035 public function __construct() 00036 { 00041 $this->_db = sqlite_open(':memory:'); 00042 $result = sqlite_query($this->_db, "SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND tbl_name='cache' "); 00043 $count = sqlite_fetch_single($result); 00044 00045 if(!$count) { 00046 sqlite_exec($this->_db, ' CREATE TABLE cache (id TEXT, "group" TEXT, value TEXT, lifetime TEXT) '); 00047 } 00048 00049 return $this->_db; 00050 } 00051 }