src/Expose/Cache/File.php
public function save($key, $data)
	{
		$hash = md5($key);
		$cacheFile = $this->getPath().'/'.$hash.'.cache';

		return file_put_contents($cacheFile, serialize($data));
	}
public function save($key, $data)
	{
		$hash = md5($key);
		$cacheFile = $this->getPath().'/'.$hash.'.cache';

		return file_put_contents($cacheFile, serialize($data));
	}
public function save ( $ key , $ data ) { $ hash = md5 ( $ key ) ; $ cacheFile = $ this -> getPath ( ) . '/' . $ hash . '.cache' ; return file_put_contents ( $ cacheFile , serialize ( $ data ) ) ; }
Save the cache data to a file

@param string $key Identifier key (used in filename)
@param mixed $data Data to cache
@return boolean Success/fail of save
Save the cache data to a file