You are here

private function CacheProvider::getNamespacedId in Plug 7

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 lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Tests if an entry exists in the cache.
CacheProvider::delete in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Deletes a cache entry.
CacheProvider::fetch in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Fetches an entry from the cache.
CacheProvider::save in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Puts data into the cache.

File

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