src/Net/API/Dyn.php
protected function save( $data ){
		if( !$this->cacheFile )
			return;
		$last	= array(
			'ip'		=> $this->lastIp,
			'timestamp'	=> $this->lastCheck
		);
		$data	= array_merge( $last,  $data );
		return FS_File_Writer::save( $this->cacheFile, json_encode( $data ) );
	}
protected function save( $data ){
		if( !$this->cacheFile )
			return;
		$last	= array(
			'ip'		=> $this->lastIp,
			'timestamp'	=> $this->lastCheck
		);
		$data	= array_merge( $last,  $data );
		return FS_File_Writer::save( $this->cacheFile, json_encode( $data ) );
	}
protected function save ( $ data ) { if ( ! $ this -> cacheFile ) return ; $ last = array ( 'ip' => $ this -> lastIp , 'timestamp' => $ this -> lastCheck ) ; $ data = array_merge ( $ last , $ data ) ; return FS_File_Writer :: save ( $ this -> cacheFile , json_encode ( $ data ) ) ; }
Save cache.
@access		protected
@param		array		$data			Map of IP and timestamp
@return		integer		Number of bytes written to cache file
Save cache .