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