+ [refac] close cache connection when program is shutdown.
This commit is contained in:
Vendored
+12
@@ -893,6 +893,18 @@ class cache
|
||||
return $this->cache->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关闭缓存连接。
|
||||
* Close cache connection.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
if(method_exists($this->cache, 'close')) $this->cache->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取内存使用情况。
|
||||
* Get memory usage.
|
||||
|
||||
Reference in New Issue
Block a user