function xautoload_ServiceFactory::apcKeyManager in X Autoload 7.3
Parameters
xautoload_Container_LazyServices $services:
Return value
xautoload_ApcKeyManager_Disabled|xautoload_ApcKeyManager_Enabled
File
- lib/
ServiceFactory.php, line 80
Class
Code
function apcKeyManager($services) {
// Check if the system supports APC cache method.
if (1 && extension_loaded('apc') && function_exists('apc_store') && function_exists('apc_fetch') && isset($GLOBALS['drupal_hash_salt'])) {
return new xautoload_ApcKeyManager_Enabled('drupal.xautoload.' . $GLOBALS['drupal_hash_salt'] . '.apc_prefix');
}
else {
return new xautoload_ApcKeyManager_Disabled();
}
}