redis

package
v0.0.0-...-7de97a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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 UserList *redis.Client //comment_id->user_id--发表评论的用户
View Source
var VedioToComment *redis.Client //vedio->comment_id

下面两个为了解决热Key而使用

Functions

func AddComment

func AddComment(videoId int64, userid int64, text string, id int64, t time.Time) bool

func DelComment

func DelComment(videoId int64, commentId int64) (bool, error)

func InitRedis

func InitRedis()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL