You are here

public function ChainCache::setNamespace in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php \Doctrine\Common\Cache\ChainCache::setNamespace()

Sets the namespace to prefix all cache ids with.

Parameters

string $namespace:

Return value

void

Overrides CacheProvider::setNamespace

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php, line 47

Class

ChainCache
Cache provider that allows to easily chain multiple cache providers

Namespace

Doctrine\Common\Cache

Code

public function setNamespace($namespace) {
  parent::setNamespace($namespace);
  foreach ($this->cacheProviders as $cacheProvider) {
    $cacheProvider
      ->setNamespace($namespace);
  }
}