aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/CacheManager.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 06:02:37 +0000
committersaturneric <[email protected]>2024-01-12 06:02:37 +0000
commitbf538056b24a68b8fd235b1c50991ee8eb46a776 (patch)
treee1bab54095b80df62b321fb5bd69453f9f951b05 /src/core/function/CacheManager.h
parentfeat: improve api and ui of keys import and export (diff)
downloadGpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.tar.gz
GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.zip
refactor: use QString instead of std::string and improve threading system
Diffstat (limited to 'src/core/function/CacheManager.h')
-rw-r--r--src/core/function/CacheManager.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/function/CacheManager.h b/src/core/function/CacheManager.h
index 0cb893a2..9e95096d 100644
--- a/src/core/function/CacheManager.h
+++ b/src/core/function/CacheManager.h
@@ -42,15 +42,13 @@ class GPGFRONTEND_CORE_EXPORT CacheManager
~CacheManager() override;
- void SaveCache(std::string key, const nlohmann::json& value,
- bool flush = false);
+ void SaveCache(QString key, const nlohmann::json& value, bool flush = false);
- auto LoadCache(std::string key) -> nlohmann::json;
+ auto LoadCache(QString key) -> nlohmann::json;
- auto LoadCache(std::string key, nlohmann::json default_value)
- -> nlohmann::json;
+ auto LoadCache(QString key, nlohmann::json default_value) -> nlohmann::json;
- auto ResetCache(std::string key) -> bool;
+ auto ResetCache(QString key) -> bool;
private:
class Impl;