/// <summary> /// 从缓存中删除题目总数 /// </summary> public static void RemoveProblemSetCountCache() { CacheManager.Remove(PROBLEM_COUNT_CACHE_KEY); }
/// <summary> /// 从缓存中删除指定题目列表信息 /// </summary> /// <param name="pageIndex">页面索引</param> public static void RemoveProblemSetCache(Int32 pageIndex) { CacheManager.Remove(GetProblemSetCacheKey(pageIndex)); }
/// <summary> /// 从缓存中删除指定题目信息 /// </summary> /// <param name="id">题目ID</param> public static void RemoveProblemCache(Int32 id) { CacheManager.Remove(GetProblemCacheKey(id)); }
/// <summary> /// 从缓存中删除竞赛总数 /// </summary> /// <param name="passed">是否已过去的竞赛</param> public static void RemoveContestListCountCache(Boolean passed) { CacheManager.Remove(GetContestListCountCacheKey(passed)); }
/// <summary> /// 从缓存中删除资源信息 /// </summary> public static void RemoveResourceListCache() { CacheManager.Remove(RESOURCE_LIST_CACHE_KEY); }
/// <summary> /// 从缓存中删除指定主题信息 /// </summary> /// <param name="id">指定主题ID</param> public static void RemoveForumTopicCache(Int32 id) { CacheManager.Remove(GetForumTopicCacheKey(id)); }
/// <summary> /// 从缓存中删除用户排名总数 /// </summary> public static void RemoveRanklistUserCountCache() { CacheManager.Remove(RANKLIST_COUNT_CACHE_KEY); }
/// <summary> /// 从缓存中删除指定公告信息 /// </summary> public static void RemoveNewsCache(Int32 id) { CacheManager.Remove(GetNewsCacheKey(id)); }
/// <summary> /// 从缓存中删除题目类别种类信息 /// </summary> public static void RemoveProblemCategoryListCache() { CacheManager.Remove(PROBLEM_CATEGORY_LIST_CACHE_KEY); }
/// <summary> /// 从缓存中删除公告总数 /// </summary> public static void RemoveNewsCountCache() { CacheManager.Remove(NEWS_COUNT_CACHE_KEY); }
/// <summary> /// 从缓存中删除最近公告信息 /// </summary> public static void RemoveLastestNewsListCache() { CacheManager.Remove(NEWS_LASTLIST_CACHE_KEY); }
/// <summary> /// 从缓存中删除AC代码打包文件 /// </summary> /// <param name="userName">用户名</param> public static void RemoveAcceptedCodesCache(String userName) { CacheManager.Remove(GetAcceptedCodesKey(userName)); }
/// <summary> /// 从缓存中删除题目ID列表 /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> public static void RemoveProblemIDListCache(String userName, Boolean isUnsolved) { CacheManager.Remove(GetProblemIDListCacheKey(userName, isUnsolved)); }
/// <summary> /// 从缓存中删除指定页面信息 /// </summary> /// <param name="name">页面名称</param> public static void RemoveTopicPageCache(String name) { CacheManager.Remove(GetTopicPageCacheKey(name)); }
/// <summary> /// 从缓存中删除题目ID最大值 /// </summary> public static void RemoveProblemIDMaxCache() { CacheManager.Remove(PROBLEM_MAX_CACHE_KEY); }
/// <summary> /// 从缓存中删除用户未读邮件总数 /// </summary> /// <param name="userName">用户名</param> public static void RemoveUserUnReadMailCountCache(String userName) { CacheManager.Remove(GetUserUnReadMailCountCacheKey(userName)); }
/// <summary> /// 从缓存中删除指定竞赛用户列表信息 /// </summary> /// <param name="cid">竞赛ID</param> public static void RemoveContestUserListCache(Int32 cid) { CacheManager.Remove(GetContestUserListCacheKey(cid)); }
/// <summary> /// 从缓存中删除指定竞赛排名 /// </summary> /// <param name="id">竞赛ID</param> public static void RemoveContestRankCache(Int32 id) { CacheManager.Remove(GetContestRankCacheKey(id)); }
/// <summary> /// 从缓存中删除主题总数 /// </summary> /// <param name="type">主题类型</param> /// <param name="relativeID">相关ID</param> public static void RemoveForumTopicCountCache(ForumTopicType type, Int32 relativeID) { CacheManager.Remove(GetForumTopicCountCacheKey(type, relativeID)); }
/// <summary> /// 从缓存中删除用户TOP10列表 /// </summary> public static void RemoveUserTop10Cache() { CacheManager.Remove(USER_TOP10_CACHE_KEY); }