+ baseDAO: add a method to clear cache.

This commit is contained in:
liugang
2024-05-24 16:18:08 +08:00
committed by caoyanyi
parent f46792a466
commit 9459df664b
+12
View File
@@ -370,6 +370,18 @@ class baseDAO
if(!empty($this->cache)) $this->cache->set($key, array(microtime(true), $value));
}
/**
* 清除缓存。
* Clear the cache.
*
* @access public
* @return void
*/
public function clearCache()
{
if(!empty($this->cache)) $this->cache->clear();
}
/**
* 开始事务。
* Begin Transaction