Composer\Autoload
ClassLoader::setApcuPrefix
APCu prefix to use to cache found/not-found classes, if the extension is enabled.
Method of the class: ClassLoader{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$ClassLoader = new ClassLoader(); $ClassLoader->setApcuPrefix( $apcuPrefix );
- $apcuPrefix(string|null) (required)
- .
ClassLoader::setApcuPrefix() ClassLoader::setApcuPrefix code WPSCache 2.0.1
public function setApcuPrefix($apcuPrefix) { $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; }