redisutils

package
v0.0.0-...-27f31c7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 1

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 DelRedisKey

func DelRedisKey(key string)

func GetRedis

func GetRedis(key string, out interface{})

func GetRedisClient

func GetRedisClient() *ichubredis.IchubRedisClient

func GetRedisKey

func GetRedisKey(key string) string

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