private function CacheProvider::getNamespaceVersion in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::getNamespaceVersion()
Returns the namespace version.
Return value
integer
2 calls to CacheProvider::getNamespaceVersion()
- CacheProvider::deleteAll in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php - Deletes all cache entries in the current cache namespace.
- CacheProvider::getNamespacedId in vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php - Prefixes the passed id with the configured namespace value.
File
- vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php, line 184
Class
- CacheProvider
- Base class for cache provider implementations.
Namespace
Doctrine\Common\CacheCode
private function getNamespaceVersion() {
if (null !== $this->namespaceVersion) {
return $this->namespaceVersion;
}
$namespaceCacheKey = $this
->getNamespaceCacheKey();
$namespaceVersion = $this
->doFetch($namespaceCacheKey);
if (false === $namespaceVersion) {
$namespaceVersion = 1;
$this
->doSave($namespaceCacheKey, $namespaceVersion);
}
$this->namespaceVersion = $namespaceVersion;
return $this->namespaceVersion;
}