You are here

public function ChainCache::setNamespace in Plug 7

Sets the namespace to prefix all cache ids with.

Parameters

string $namespace:

Return value

void

Overrides CacheProvider::setNamespace

File

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