function VcsDriver::shouldCache
Returns whether or not the given $identifier should be cached or not.
4 calls to VcsDriver::shouldCache()
- GitBitbucketDriver::getComposerInformation in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitBitbucketDriver.php - @inheritDoc
- GitHubDriver::getComposerInformation in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitHubDriver.php - @inheritDoc
- GitLabDriver::getComposerInformation in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ GitLabDriver.php - @inheritDoc
- VcsDriver::getComposerInformation in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ VcsDriver.php - @inheritDoc
1 method overrides VcsDriver::shouldCache()
- SvnDriver::shouldCache in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ VcsDriver.php, line 79
Class
- VcsDriver
- A driver implementation for driver with authentication interaction.
Namespace
Composer\Repository\VcsCode
protected function shouldCache(string $identifier) : bool {
return $this->cache && Preg::isMatch('{^[a-f0-9]{40}$}iD', $identifier);
}