public async static Task<User> GetUserAsync() { if (_user == null) { _user = await new AkavacheEntity().GetObjectAsync<User> (USR_KEY); } return _user; }
public async static Task ClearUser() { _user = null; await new AkavacheEntity().RemoveObjectAsync<User>(USR_KEY); }
public async static Task SaveUserAsync(User user) { await new AkavacheEntity().InsertObjectAsync(USR_KEY, user); _user = user; }