cache

package
v0.0.0-...-4aebee4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DailyRankKey the daily rank of view
	DailyRankKey = "rank:daily"
	// EmptyShare a set to store empty share key
	EmptyShare = "share:empty"
)

Variables

View Source
var RedisClient *redis.Client

Functions

func EmailCodeKey

func EmailCodeKey(email string) string

EmailConfirmKey use to store confirm code in cache

func FileInfoStoreKey

func FileInfoStoreKey(id string) string

FileStoreKey use id to build file store info key in cache

func RecentSendUserKey

func RecentSendUserKey(email string) string

RecentSendUserKey store user's required in recent

func Redis

func Redis()

init redis

func ShareInfoKey

func ShareInfoKey(id string) string

ShareInfoKey use id to build share info in cache

func ShareKey

func ShareKey(id string) string

ShareKey use id to build share key in cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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