diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-12-14 11:16:01 -0800 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-12-27 18:15:33 +0200 |
commit | 6d0b01c5fb1e0740ea48566fea200f03b979c52c (patch) | |
tree | 1ef2b3f41a35188079c766d47bf8abaffa9945ff /include | |
parent | 225eda4fff542918580c838f1cafa301ca7ea6fb (diff) | |
download | qtlocation-mapboxgl-6d0b01c5fb1e0740ea48566fea200f03b979c52c.tar.gz |
[core] Make it possible to limit the size of the SQLite cache
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/sqlite_cache.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/storage/sqlite_cache.hpp b/include/mbgl/storage/sqlite_cache.hpp index 4b51d94920..6e79d44a33 100644 --- a/include/mbgl/storage/sqlite_cache.hpp +++ b/include/mbgl/storage/sqlite_cache.hpp @@ -16,6 +16,9 @@ public: SQLiteCache(const std::string &path = ":memory:"); ~SQLiteCache() override; + void setMaximumCacheSize(uint64_t size); + void setMaximumCacheEntrySize(uint64_t size); + // FileCache API std::unique_ptr<WorkRequest> get(const Resource &resource, Callback callback) override; void put(const Resource &resource, std::shared_ptr<const Response> response, Hint hint) override; |