コード例 #1
0
 /// <summary>
 /// 文章详情前10条评价
 /// </summary>
 /// <param name="articleId"></param>
 /// <returns></returns>
 public static async Task <Tuple <List <Comment>, int> > SelectCommentsTop10(int articleId) => await GetFromCacheAsync($"DetailCommentsTopNumById/{articleId}", () => CommentBll.SelectCommentsTopNum(articleId, 10), CacheTimeEnum.Short);