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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FollowField = "FollowNum"
View Source
const FollowerField = "FollowerNum"

Variables

View Source
var Count1 *redis.Client

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

View Source
var Count2 *redis.Client
View Source
var Name1 *redis.Client

用户id和用户名对应信息表

View Source
var Name2 *redis.Client

Functions

func AddName

func AddName(userId int64, name string)

func DelCount

func DelCount(UserId int64, ToUserId int64) (bool, error)

删除UserId的关注数和ToUserId的粉丝数

func InitRedis

func InitRedis()

func UpdateCount

func UpdateCount(UserId int64, FollowNum int64, FollowerNum int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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