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 namespace GpgFrontend {
32 
37 void GPGFRONTEND_CORE_EXPORT SetCacheValue(const QString &key, QString value);
38 
45 auto GPGFRONTEND_CORE_EXPORT GetCacheValue(const QString &key) -> QString;
46 
52 void GPGFRONTEND_CORE_EXPORT ResetCacheValue(const QString &);
53 
54 } // 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