本文整理汇总了PHP中Doctrine\Common\Cache\CacheProvider::getStats方法的典型用法代码示例。如果您正苦于以下问题:PHP CacheProvider::getStats方法的具体用法?PHP CacheProvider::getStats怎么用?PHP CacheProvider::getStats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine\Common\Cache\CacheProvider
的用法示例。
在下文中一共展示了CacheProvider::getStats方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStats
public function getStats()
{
return $this->_cacheImplement->getStats();
}
示例2: getStats
/**
* {@inheritdoc}
*/
public function getStats()
{
return $this->provider->getStats();
}
示例3: getStats
/**
* Retrieves cached information from the data store.
*
* The server's statistics array has the following values:
*
* - <b>hits</b>
* Number of keys that have been requested and found present.
*
* - <b>misses</b>
* Number of items that have been requested and not found.
*
* - <b>uptime</b>
* Time that the server is running.
*
* - <b>memory_usage</b>
* Memory used by this server to store items.
*
* - <b>memory_available</b>
* Memory allowed to use for storage.
*
* @since 2.2
*
* @return array|null An associative array with server's statistics if available, NULL otherwise.
*/
public function getStats()
{
return $this->cache->getStats();
}