From 6fae36abc404ffb7e6ae29c9edceda5231400f0a Mon Sep 17 00:00:00 2001 From: CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> Date: Sun, 28 Jun 2020 21:01:34 +0530 Subject: [WIP] Add Caching for users --- src/Cache.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/Cache.h') 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(); -- cgit 1.5.1