You are here

private function CacheProvider::getNamespacedId in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::getNamespacedId()

Prefixes the passed id with the configured namespace value.

Parameters

string $id The id to namespace.:

Return value

string The namespaced id.

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

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php, line 162

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);
}