+ baseDAO: add a method to clear cache.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user