diff options
Diffstat (limited to 'platform/default/include/mbgl/storage')
-rw-r--r-- | platform/default/include/mbgl/storage/offline_database.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/default/include/mbgl/storage/offline_database.hpp b/platform/default/include/mbgl/storage/offline_database.hpp index 3de829e635..4e9ffcf028 100644 --- a/platform/default/include/mbgl/storage/offline_database.hpp +++ b/platform/default/include/mbgl/storage/offline_database.hpp @@ -58,6 +58,11 @@ public: // lookup, it will not get downloaded again. std::exception_ptr invalidateTileCache(); + // Clear the tile cache, freeing resources. This operation can be + // potentially slow because it will trigger a VACUUM on SQLite, + // forcing the database to move pages on the filesystem. + std::exception_ptr clearTileCache(); + expected<OfflineRegions, std::exception_ptr> listRegions(); expected<OfflineRegion, std::exception_ptr> createRegion(const OfflineRegionDefinition&, |