+ [refac] add method to get memory usage.
This commit is contained in:
Vendored
+12
@@ -889,4 +889,16 @@ class cache
|
||||
{
|
||||
$this->cache->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取内存使用情况。
|
||||
* Get memory usage.
|
||||
*
|
||||
* @param string $type
|
||||
* @return string
|
||||
*/
|
||||
public function memory(string $type)
|
||||
{
|
||||
return $this->cache->memory($type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user