as-cache-file 3 APPSTREAM Library
as-cache-file Load and save cache files.

## Functions

void | as_cache_file_save ()
GPtrArray * | as_cache_file_read ()

## Includes

    #include <appstream.h>

## Description

## Functions

### as_cache_file_save ()

    void
    as_cache_file_save (const gchar *fname,
                        const gchar *locale,
                        GPtrArray *cpts,
                        GError **error);

Serialize components to a cache file and store it on disk.

#### Parameters

fname | The file to save the data to. |
locale | The locale this cache file is for. |
cpts | The components to serialize. | [element-type AsComponent]
error | A GError |

as_cache_file_save

### as_cache_file_read ()

    GPtrArray *
    as_cache_file_read (const gchar *fname,
                        GError **error);

as_cache_file_read

## Types and Values