Documentation ¶
Index ¶
Constants ¶
View Source
const TextField = "CommentText"
View Source
const UserField = "UserID"
Variables ¶
View Source
var CommentList1 *redis.Client // comment_id ->text
View Source
var CommentList2 *redis.Client // 解决大Key而生
View Source
var Ctx = context.Background()
View Source
var UserList *redis.Client //comment_id->user_id--发表评论的用户
View Source
var VedioToComment *redis.Client //vedio->comment_id
下面两个为了解决热Key而使用
Functions ¶
func AddComment ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.