src/Doctrine/Cache/Cache.php
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;
	}
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;
	}
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 ; }
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
Puts data into the cache and makes them depending on the files .