private function createCache(string $name)
	{
		$builder = $this->getContainerBuilder();

		$cache = $builder->addDefinition($this->prefix('cache.' . $name))
			->setClass(Cache::class)
			->setArguments(['@Nette\Caching\IStorage', $this->debugMode])
			->addSetup('$service->setNamespace(?)', [$this->prefix('cache.' . $name)]);

		return $cache;
	}
private function createCache(string $name)
	{
		$builder = $this->getContainerBuilder();

		$cache = $builder->addDefinition($this->prefix('cache.' . $name))
			->setClass(Cache::class)
			->setArguments(['@Nette\Caching\IStorage', $this->debugMode])
			->addSetup('$service->setNamespace(?)', [$this->prefix('cache.' . $name)]);

		return $cache;
	}
private function createCache ( string $ name ) { $ builder = $ this -> getContainerBuilder ( ) ; $ cache = $ builder -> addDefinition ( $ this -> prefix ( 'cache.' . $ name ) ) -> setClass ( Cache :: class ) -> setArguments ( [ '@Nette\Caching\IStorage' , $ this -> debugMode ] ) -> addSetup ( '$service->setNamespace(?)' , [ $ this -> prefix ( 'cache.' . $ name ) ] ) ; return $ cache ; }
Creates a caching service.
Creates a caching service .