Exemple #1
0
 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);
 }
Exemple #2
0
 public void SetConfiguration(ConfigurationViewModel configuration)
 {
     _cache.Set <ConfigurationViewModel>(_ConfigurationKey, configuration);
 }