本文整理匯總了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();
}