GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
CacheUtils.h
1 
29 #pragma once
30 
31 #include "core/GpgFrontendCoreExport.h"
32 
33 namespace GpgFrontend {
34 
39 void GPGFRONTEND_CORE_EXPORT SetCacheValue(const QString &key, QString value);
40 
47 auto GPGFRONTEND_CORE_EXPORT GetCacheValue(const QString &key) -> QString;
48 
54 void GPGFRONTEND_CORE_EXPORT ResetCacheValue(const QString &);
55 
56 } // namespace GpgFrontend
Definition: app.cpp:39
void SetCacheValue(const QString &key, QString value)
set a temp cache under a certain key
Definition: CacheUtils.cpp:35
auto GetCacheValue(const QString &key) -> QString
after get the temp cache, its value will be imediately ease in storage
Definition: CacheUtils.cpp:39
void ResetCacheValue(const QString &key)
imediately ease temp cache in storage
Definition: CacheUtils.cpp:43