protected function _write($key, $value, $expires) {
		$path = "{$this->_config['path']}/{$key}";

		if (!$stream = fopen($path, 'wb')) {
			return false;
		}
		fwrite($stream, "{:expiry:{$expires}}\n");

		if (is_resource($value)) {
			stream_copy_to_stream($value, $stream);
		} else {
			fwrite($stream, $value);
		}
		return fclose($stream);
	}
protected function _write($key, $value, $expires) {
		$path = "{$this->_config['path']}/{$key}";

		if (!$stream = fopen($path, 'wb')) {
			return false;
		}
		fwrite($stream, "{:expiry:{$expires}}\n");

		if (is_resource($value)) {
			stream_copy_to_stream($value, $stream);
		} else {
			fwrite($stream, $value);
		}
		return fclose($stream);
	}
protected function _write ( $ key , $ value , $ expires ) { $ path = "{$this->_config['path']}/{$key}" ; if ( ! $ stream = fopen ( $ path , 'wb' ) ) { return false ; } fwrite ( $ stream , "{:expiry:{$expires}}\n" ) ; if ( is_resource ( $ value ) ) { stream_copy_to_stream ( $ value , $ stream ) ; } else { fwrite ( $ stream , $ value ) ; } return fclose ( $ stream ) ; }
Compiles value to format and writes file.

@see lithium\storage\cache\adapter\File::write()
@param string $key Key to uniquely identify the cached item.
@param mixed $value Value or resource with value to store under given key.
@param integer $expires UNIX timestamp after which the item is invalid.
@return boolean `true` on success, `false` otherwise.
Compiles value to format and writes file .