lib/fal/metafilestorage.php
public function save($file, $data, $ttl)
	{
		$cacheHash = $this->getCacheHash($file);
		if($this->fs->write($this->getMetaFilePath($file), json_encode($data))) {
			if ($this->f3->get('CACHE')) {
				$cache = \Cache::instance();
				if ($ttl)
					$cache->set($cacheHash, $data, $ttl);
				elseif ($cache->exists($cacheHash))
					$cache->clear($cacheHash);
			}
			$this->data = $data;
			return true;
		} else return false;
	}
public function save($file, $data, $ttl)
	{
		$cacheHash = $this->getCacheHash($file);
		if($this->fs->write($this->getMetaFilePath($file), json_encode($data))) {
			if ($this->f3->get('CACHE')) {
				$cache = \Cache::instance();
				if ($ttl)
					$cache->set($cacheHash, $data, $ttl);
				elseif ($cache->exists($cacheHash))
					$cache->clear($cacheHash);
			}
			$this->data = $data;
			return true;
		} else return false;
	}
public function save ( $ file , $ data , $ ttl ) { $ cacheHash = $ this -> getCacheHash ( $ file ) ; if ( $ this -> fs -> write ( $ this -> getMetaFilePath ( $ file ) , json_encode ( $ data ) ) ) { if ( $ this -> f3 -> get ( 'CACHE' ) ) { $ cache = \ Cache :: instance ( ) ; if ( $ ttl ) $ cache -> set ( $ cacheHash , $ data , $ ttl ) ; elseif ( $ cache -> exists ( $ cacheHash ) ) $ cache -> clear ( $ cacheHash ) ; } $ this -> data = $ data ; return true ; } else return false ; }
save meta data
@param $file
@param $data
@param $ttl
@return bool
save meta data