parameters: (self, media_type, filepath, filehash, compr_settings, packer_settings)
docstring: Add cache data for a file.
  
          :param media_type: Media type of the file (should be a graphics format)
          :type media_type: MediaType
          :param filepath: Path of the source file in the sourcedir
                           mounted by the openage converter.
          :type filepath: str
          :param filehash: Hash value of the source file.
          :type filehash: str
          :param compr_settings: Settings for the PNG compression.
          :type compr_settings: tuple
          :param packer_settings: Settings for the packing algorithm.
          :type packer_settings: ruple
docstring_summary: Add cache data for a file.
docstring_tokens: Add cache data for a file .
function: def add_cache_data(self, media_type, filepath, filehash, compr_settings, packer_settings):
          """
          Add cache data for a file.
  
          :param media_type: Media type of the file (should be a graphics format)
          :type media_type: MediaType
          :param filepath: Path of the source file in the sourcedir
                           mounted by the openage converter.
          :type filepath: str
          :param filehash: Hash value of the source file.
          :type filehash: str
          :param compr_settings: Settings for the PNG compression.
          :type compr_settings: tuple
          :param packer_settings: Settings for the packing algorithm.
          :type packer_settings: ruple
          """
          if media_type not in self.cache.keys():
              self.cache[media_type] = []
  
          self.cache[media_type].append(
              (filepath, filehash, compr_settings, packer_settings)
          )
function_tokens: def add_cache_data ( self , media_type , filepath , filehash , compr_settings , packer_settings ) : if media_type not in self . cache . keys ( ) : self . cache [ media_type ] = [ ] self . cache [ media_type ] . append ( ( filepath , filehash , compr_settings , packer_settings ) )