public function MemcacheStatsObject::getUptime in Memcache API and Integration 8.2
@inheritDoc
Overrides MemcacheStatsInterface::getUptime
File
- memcache_admin/
src/ Stats/ MemcacheStatsObject.php, line 33
Class
- MemcacheStatsObject
- Class MemcacheStats.
Namespace
Drupal\memcache_admin\StatsCode
public function getUptime() : string {
return isset($this->stats['uptime']) ? \Drupal::service('date.formatter')
->formatInterval($this->stats['uptime']) : self::NA;
}