public void SetUser(UserInfo user) { if (user == null || string.IsNullOrEmpty(user.Id)) { throw new ArgumentException("Invalid Argument User"); } _cache.Set <UserInfo>(GetUserKey(user.Id), user); }
public void SetConfiguration(ConfigurationViewModel configuration) { _cache.Set <ConfigurationViewModel>(_ConfigurationKey, configuration); }