You are here

public function DrupalMemcache::getStats in Memcache Storage 8

Returns info about connected memached servers.

Return value

array Info about connected memached servers.

Overrides DrupalMemcachedInterface::getStats

File

src/DrupalMemcache.php, line 77

Class

DrupalMemcache
Class DrupalMemcache

Namespace

Drupal\memcache_storage

Code

public function getStats() {

  // Supress errors, because if one of the memcached servers is not connected
  // it will throw php warning, but we handle this case ourselves.
  return @$this->memcached
    ->getExtendedStats();
}