public function MemcacheStatsObject::getConnections in Memcache API and Integration 8.2
Statistics report: format total and open connections.
1 method overrides MemcacheStatsObject::getConnections()
- McrouterStatsObject::getConnections in memcache_admin/
src/ Stats/ McrouterStatsObject.php - Statistics report: format total and open connections.
File
- memcache_admin/
src/ Stats/ MemcacheStatsObject.php, line 54
Class
- MemcacheStatsObject
- Class MemcacheStats.
Namespace
Drupal\memcache_admin\StatsCode
public function getConnections() {
if (!isset($this->stats['curr_connections']) || !isset($this->stats['total_connections'])) {
return self::NA;
}
return $this
->t('@current open of @total total', [
'@current' => number_format($this->stats['curr_connections']),
'@total' => number_format($this->stats['total_connections']),
]);
}