function memcache_admin_bin_mapping in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/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 modules/
memcache/ memcache_admin/ memcache_admin.module - Memcache Stats page
- memcache_admin_stats_raw in modules/
memcache/ memcache_admin/ memcache_admin.module
File
- modules/
memcache/ memcache_admin/ memcache_admin.module, line 221
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);
}
}