protected override void UpdateCache(CommandResponse result)
 {
     if (result.Success)
     {
         CacheHandler.Instance.Remove(CachingKey.UserSubscriptions(UserName));
     }
 }
 protected override void UpdateCache(CommandResponse <bool?> result)
 {
     if (result.Success)
     {
         //purge subscriptions from cache because they just changed
         CacheHandler.Instance.Remove(CachingKey.UserSubscriptions(UserName));
     }
 }
 protected override void UpdateCache(CommandResponse <Domain.Models.Set> result)
 {
     if (result.Success)
     {
         CacheHandler.Instance.Remove(CachingKey.UserSubscriptions(UserName));
         CacheHandler.Instance.Remove(CachingKey.Set(this._set.Name, this._set.UserName));
     }
 }
 protected override void UpdateCache(CommandResponse <bool?> result)
 {
     if (result.Success)
     {
         if (_setRef.Name.IsEqual(SetType.Front.ToString()))
         {
             CacheHandler.Instance.Remove(CachingKey.UserSubscriptions(UserName));
         }
         else if (_setRef.Name.IsEqual(SetType.Blocked.ToString()))
         {
             CacheHandler.Instance.Remove(CachingKey.UserBlocks(UserName));
         }
     }
 }
 protected override void UpdateCache(CommandResponse result)
 {
     if (result.Success)
     {
         //Cleare user cache
         CacheHandler.Instance.Remove(CachingKey.UserBlocks(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserInformation(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserOverview(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserPreferences(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserSubscriptions(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserData(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserBlocks(_options.UserName));
         CacheHandler.Instance.Remove(CachingKey.UserRecord(_options.UserName));
         //CacheHandler.Instance.Remove(CachingKey.UserSavedItems(_options.UserName));
     }
 }