private void ClearUserCache(string userName = null)
        {
            userName = String.IsNullOrEmpty(userName) ? User.Identity.Name : userName;

            CacheHandler.Instance.Remove(CachingKey.UserPreferences(userName));
            CacheHandler.Instance.Remove(CachingKey.UserInformation(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));
     }
 }
 protected override void UpdateCache(CommandResponse result)
 {
     CacheHandler.Instance.Remove(CachingKey.UserPreferences(this.UserName));
 }