You are here

public function ClassLoader::setApcuPrefix in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::setApcuPrefix()
  2. 8.3 vendor/composer/ClassLoader.php \Composer\Autoload\ClassLoader::setApcuPrefix()

APCu prefix to use to cache found/not-found classes, if the extension is enabled.

Parameters

string|null $apcuPrefix:

File

vendor/composer/ClassLoader.php, line 280

Class

ClassLoader
ClassLoader implements a PSR-0, PSR-4 and classmap class loader.

Namespace

Composer\Autoload

Code

public function setApcuPrefix($apcuPrefix) {
  $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
}