You are here

public function MemcacheStatsObject::getServerTime in Memcache API and Integration 8.2

@inheritDoc

1 method overrides MemcacheStatsObject::getServerTime()
McrouterStatsObject::getServerTime in memcache_admin/src/Stats/McrouterStatsObject.php
@inheritDoc

File

memcache_admin/src/Stats/MemcacheStatsObject.php, line 47

Class

MemcacheStatsObject
Class MemcacheStats.

Namespace

Drupal\memcache_admin\Stats

Code

public function getServerTime() : string {
  return isset($this->stats['time']) ? \Drupal::service('date.formatter')
    ->format($this->stats['time']) : self::NA;
}