You are here

function dmemcache_stats in Memcache API and Integration 5

Same name and namespace in other branches
  1. 5.2 dmemcache.inc \dmemcache_stats()
  2. 6 dmemcache.inc \dmemcache_stats()
  3. 7 dmemcache.inc \dmemcache_stats()
1 call to dmemcache_stats()
memcache_admin_stats in memcache_admin/memcache_admin.module
Memcahe Stats page
1 string reference to 'dmemcache_stats'
memcache_admin_requirements in memcache_admin/memcache_admin.install

File

./dmemcache.inc, line 116

Code

function dmemcache_stats($bin = 'cache', $type = '') {

  // resolve requests for 'default' type to ''
  if ($type == 'default') {
    $type = '';
  }

  // resolve requests for 'default' bin to 'cache'.
  if ($bin == 'default') {
    $bin = 'cache';
  }
  if ($mc = dmemcache_object($bin)) {
    return $mc
      ->getExtendedStats($type);
  }
}