Enum CacheDatabaseOperation
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A maintenance action on a runtime's cache database.
public enum CacheDatabaseOperation : uint
Fields
Clear = 1Deletes the ambient cache's resources and frees the space they used. Offline regions keep their resources.
Invalidate = 2Keeps the ambient cache's resources, but makes maps check each one with the server before they use it again. Offline regions keep their resources as they are.
Pack = 3Compacts the whole database file to free the disk space that it no longer uses.
Reset = 4Deletes the whole database, offline regions included, and starts an empty one.
Remarks
The cache database is the file that RuntimeOptions.CachePath
names. It holds the ambient cache, meaning the resources that maps loaded,
and the offline regions.
See mln_cache_database_operation in the C API reference.