diff options
author | CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> | 2020-06-28 21:01:34 +0530 |
---|---|---|
committer | CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> | 2020-07-30 22:10:27 +0530 |
commit | 6fae36abc404ffb7e6ae29c9edceda5231400f0a (patch) | |
tree | bce50b744fd917e393848813d8206668f48bd190 /src/Cache.h | |
parent | Error Handling and some fixes (diff) | |
download | nheko-6fae36abc404ffb7e6ae29c9edceda5231400f0a.tar.xz |
[WIP] Add Caching for users
Diffstat (limited to 'src/Cache.h')
-rw-r--r-- | src/Cache.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Cache.h b/src/Cache.h index b5275623..34e79ab5 100644 --- a/src/Cache.h +++ b/src/Cache.h @@ -60,6 +60,23 @@ presenceState(const std::string &user_id); std::string statusMessage(const std::string &user_id); +//! user Cache +UserCache +getUserCache(const std::string &user_id); + +int +setUserCache(const std::string &user_id, const UserCache &body); + +int +deleteUserCache(const std::string &user_id); + +//! verified Cache +DeviceVerifiedCache +getVerifiedCache(const std::string &user_id); + +int +setVerifiedCache(const std::string &user_id, const DeviceVerifiedCache &body); + //! Load saved data for the display names & avatars. void populateMembers(); |