original_string: protected function doSaveDependingOnFiles($id, $data, array $files, $lifeTime = 0)
  	{
  		$dependencies = [
  			NetteCache::TAGS => ['doctrine'],
  			NetteCache::FILES => $files
  		];
  		if ($lifeTime != 0) {
  			$dependencies[NetteCache::EXPIRE] = time() + $lifeTime;
  		}
  		$this->cache->save($id, $data, $dependencies);
  
  		return TRUE;
  	}
code: protected function doSaveDependingOnFiles($id, $data, array $files, $lifeTime = 0)
  	{
  		$dependencies = [
  			NetteCache::TAGS => ['doctrine'],
  			NetteCache::FILES => $files
  		];
  		if ($lifeTime != 0) {
  			$dependencies[NetteCache::EXPIRE] = time() + $lifeTime;
  		}
  		$this->cache->save($id, $data, $dependencies);
  
  		return TRUE;
  	}
code_tokens: protected function doSaveDependingOnFiles ( $ id , $ data , array $ files , $ lifeTime = 0 ) { $ dependencies = [ NetteCache :: TAGS => [ 'doctrine' ] , NetteCache :: FILES => $ files ] ; if ( $ lifeTime != 0 ) { $ dependencies [ NetteCache :: EXPIRE ] = time ( ) + $ lifeTime ; } $ this -> cache -> save ( $ id , $ data , $ dependencies ) ; return TRUE ; }
docstring: Puts data into the cache and makes them depending on the files.
  
  @param string $id      the cache id
  @param string $data    the cache entry/data
  @param string[] $files the list of files the data are depending on
  @param int $lifeTime   the lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime)
  
  @return bool TRUE
docstring_tokens: Puts data into the cache and makes them depending on the files .