+ [refac] add method to get memory usage.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent ece01c01ae
commit b0e0090809
3 changed files with 48 additions and 0 deletions
+12
View File
@@ -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);
}
}