MetadataCache Class | Qt Installer Framework Documentation

- Qt Installer Framework Documentation
- MetadataCache

# MetadataCache Class

(QInstaller::MetadataCache)

The MetadataCache is a class for a checksum based storage of `Metadata` objects on disk. More...

Header: | #include <MetadataCache>

- List of all members, including inherited members

## Public Functions

| MetadataCache()
| MetadataCache(const int &path)

## Detailed Description

The MetadataCache is a class for a checksum based storage of `Metadata` objects on disk.

MetadataCache manages a cache storage for a set path(), which contains a subdirectory for each registered `Metadata` item. The cache has a manifest file in its root directory, which lists the version and type of the cache, and all its items. The file is updated automatically when the metadata cache object is destructed, or it can be updated periodically by calling sync().

## Member Function Documentation

### MetadataCache::MetadataCache()

Constructs a new empty cache. The cache is invalid until set with a path and initialized.

### MetadataCache::MetadataCache(const int &path)

Constructs a cache to path. The cache is initialized automatically.