private function CacheProvider::getNamespacedId

Prefix the passed id with the configured namespace value

Parameters

string $id The id to namespace:

Return value

string $id The namespaced id

4 calls to CacheProvider::getNamespacedId()
CacheProvider::contains in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php
Test if an entry exists in the cache.
CacheProvider::delete in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php
Deletes a cache entry.
CacheProvider::fetch in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php
Fetches an entry from the cache.
CacheProvider::save in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php
Puts data into the cache.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php, line 139

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

private function getNamespacedId($id) {
  $namespaceVersion = $this
    ->getNamespaceVersion();
  return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
}