/// <summary> /// 从缓存中读取资源信息 /// </summary> /// <returns>资源信息</returns> public static List <ResourceEntity> GetResourceListCache() { return(CacheManager.Get <List <ResourceEntity> >(RESOURCE_LIST_CACHE_KEY)); }
/// <summary> /// 从缓存中读取指定题目列表信息 /// </summary> /// <param name="pageIndex">页面索引</param> /// <returns>题目列表信息</returns> public static List <ProblemEntity> GetProblemSetCache(Int32 pageIndex) { return(CacheManager.Get <List <ProblemEntity> >(GetProblemSetCacheKey(pageIndex))); }
/// <summary> /// 从缓存中读取指定竞赛排名 /// </summary> /// <param name="id">竞赛ID</param> /// <returns>指定竞赛排名</returns> public static List <RankItem> GetContestRankCache(Int32 id) { return(CacheManager.Get <List <RankItem> >(GetContestRankCacheKey(id))); }
/// <summary> /// 从缓存中读取指定竞赛信息 /// </summary> /// <param name="id">竞赛ID</param> /// <returns>指定竞赛信息</returns> public static ContestEntity GetContestCache(Int32 id) { return(CacheManager.Get <ContestEntity>(GetContestCacheKey(id))); }
/// <summary> /// 从缓存中读取指定竞赛题目列表信息 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>竞赛题目列表信息</returns> public static List <ProblemEntity> GetContestProblemSetCache(Int32 cid) { return(CacheManager.Get <List <ProblemEntity> >(GetContestProblemSetCacheKey(cid))); }
/// <summary> /// 从缓存中读取题目类别种类信息 /// </summary> /// <returns>题目类别种类信息</returns> public static List <ProblemCategoryEntity> GetProblemCategoryListCache() { return(CacheManager.Get <List <ProblemCategoryEntity> >(PROBLEM_CATEGORY_LIST_CACHE_KEY)); }
/// <summary> /// 从缓存中读取AC代码打包文件 /// </summary> /// <param name="userName">用户名</param> /// <returns>AC代码打包文件</returns> public static Byte[] GetAcceptedCodesCache(String userName) { return(CacheManager.Get <Byte[]>(GetAcceptedCodesKey(userName))); }
/// <summary> /// 从缓存中读取最近比赛信息 /// </summary> /// <returns>最近比赛信息</returns> public static String GetRecentContestCache() { return(CacheManager.Get <String>(RECENTCONTEST_CACHE_KEY)); }
/// <summary> /// 从缓存中读取题目统计 /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="pid">题目ID</param> /// <returns>题目统计信息实体</returns> public static ProblemStatistic GetProblemStatisticCache(Int32 cid, Int32 pid) { return(CacheManager.Get <ProblemStatistic>(GetProblemStatisticCacheKey(cid, pid))); }
/// <summary> /// 从缓存中读取竞赛题目统计列表 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>竞赛题目统计列表</returns> public static IDictionary <Int32, ContestProblemStatistic> GetContestStatisticCache(Int32 cid) { return(CacheManager.Get <IDictionary <Int32, ContestProblemStatistic> >(GetContestStatisticCacheKey(cid))); }
/// <summary> /// 从缓存中读取题目ID列表 /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> /// <returns>题目ID列表</returns> public static List <Int32> GetProblemIDListCache(String userName, Boolean isUnsolved) { return(CacheManager.Get <List <Int32> >(GetProblemIDListCacheKey(userName, isUnsolved))); }
/// <summary> /// 从缓存中读取指定页面信息 /// </summary> /// <param name="name">页面名称</param> /// <returns>指定页面信息</returns> public static TopicPageEntity GetTopicPageCache(String name) { return(CacheManager.Get <TopicPageEntity>(GetTopicPageCacheKey(name))); }
/// <summary> /// 从缓存中读取用户TOP10列表 /// </summary> /// <returns>用户TOP10列表</returns> public static List <UserEntity> GetUserTop10Cache() { return(CacheManager.Get <List <UserEntity> >(USER_TOP10_CACHE_KEY)); }
/// <summary> /// 从缓存中读取指定题目信息 /// </summary> /// <param name="id">题目ID</param> /// <returns>指定题目信息</returns> public static ProblemEntity GetProblemCache(Int32 id) { return(CacheManager.Get <ProblemEntity>(GetProblemCacheKey(id))); }
/// <summary> /// 从缓存中读取最近公告信息 /// </summary> /// <returns>最近公告信息</returns> public static List <NewsEntity> GetLastestNewsListCache() { return(CacheManager.Get <List <NewsEntity> >(NEWS_LASTLIST_CACHE_KEY)); }
/// <summary> /// 从缓存中读取指定竞赛用户列表信息 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>竞赛用户列表信息</returns> public static Dictionary <String, ContestUserEntity> GetContestUserListCache(Int32 cid) { return(CacheManager.Get <Dictionary <String, ContestUserEntity> >(GetContestUserListCacheKey(cid))); }
/// <summary> /// 从缓存中读取指定公告信息 /// </summary> /// <param name="id">公告ID</param> /// <returns>指定公告信息</returns> public static NewsEntity GetNewsCache(Int32 id) { return(CacheManager.Get <NewsEntity>(GetNewsCacheKey(id))); }
/// <summary> /// 从缓存中读取指定主题信息 /// </summary> /// <param name="id">指定主题ID</param> /// <returns>指定主题信息</returns> public static ForumTopicEntity GetForumTopicCache(Int32 id) { return(CacheManager.Get <ForumTopicEntity>(GetForumTopicCacheKey(id))); }
/// <summary> /// 从缓存中读取指定竞赛题目信息 /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="pid">题目ID</param> /// <returns>竞赛题目信息</returns> public static ProblemEntity GetContestProblemCache(Int32 cid, Int32 pid) { return(CacheManager.Get <ProblemEntity>(GetContestProblemCacheKey(cid, pid))); }