/// <summary>
        /// 清理用户级别
        /// </summary>
        /// <param name="userID"></param>
        public static bool Clear(int userID)
        {
            bool flag = CommonDataProvider.Instance.ClearUserGrade(userID);

            if (flag)
            {
                HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKeyByUserID(userID));
            }
            return(flag);
        }
        /// <summary>
        /// 获取该用户所有级别信息
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        public static List <UserGrade> GetUserGrades(int userID)
        {
            string cacheKey = CacheKeyManager.GetUserGradeKeyByUserID(userID);

            List <UserGrade> userGrades = HHCache.Instance.Get(cacheKey) as List <UserGrade>;

            if (userGrades == null)
            {
                userGrades = CommonDataProvider.Instance.GetUserGradeByUserID(userID);
                HHCache.Instance.Insert(cacheKey, userGrades);
            }

            return(userGrades);
        }
        /// <summary>
        /// 删除用户级别
        /// </summary>
        /// <param name="gradeID"></param>
        public static bool Delete(int gradeID)
        {
            bool flag = CommonDataProvider.Instance.DeleteUserGrade(gradeID);

            if (flag)
            {
                UserGrade grade = Get(gradeID);
                if (grade != null)
                {
                    HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKeyByUserID(grade.UserID));
                    HHCache.Instance.Remove(CacheKeyManager.GetUserGradeKey(gradeID));
                }
            }
            return(flag);
        }