You are here

function memcache_admin_bin_mapping in Memcache API and Integration 6

Same name and namespace in other branches
  1. 7 memcache_admin/memcache_admin.module \memcache_admin_bin_mapping()

Helper function, reverse map the memcache_bins variable.

2 calls to memcache_admin_bin_mapping()
memcache_admin_stats in memcache_admin/memcache_admin.module
Memcahe Stats page
memcache_admin_stats_raw in memcache_admin/memcache_admin.module

File

memcache_admin/memcache_admin.module, line 223

Code

function memcache_admin_bin_mapping($bin = 'cache') {
  $bins = array_flip(variable_get('memcache_bins', array(
    'cache' => 'default',
  )));
  if (isset($bins[$bin])) {
    return $bins[$bin];
  }
  else {

    // The default bin is 'cache'.
    return _memcache_admin_default_bin($bin);
  }
}