redisutils

package
v1.0.101 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_TOKEN_PREFIX      = "auth_token"
	AUTH_TOKEN_TIMEOUT     = int64(time.Second * 60 * 60)
	AUTH_VEIFYCODE_TIMEOUT = int64(time.Second * 60 * 5)
)

Variables

This section is empty.

Functions

func GetRedis

func GetRedis(key string, out any)

func GetRedisClient

func GetRedisClient() *ichubredis.IchubRedisClient

func GetToken

func GetToken(ctx *gin.Context) string

func SaveRedisKeyTimeout

func SaveRedisKeyTimeout(key, value string, duration time.Duration)

func SaveRedisKeyToken

func SaveRedisKeyToken(key, value string)

func SaveRedisKeyVerifyCode

func SaveRedisKeyVerifyCode(key, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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