redis

package
v0.0.0-...-357760b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix                 = "fast-gin:"    // 项目前缀
	KeyFastGinJWTSetPrefix = "fastgin:jwt:" // set 用户登录时的 accessToken
)

Variables

This section is empty.

Functions

func ConfDo

func ConfDo(trace *mylog.TraceContext, name string, commandName string, args ...interface{}) (interface{}, error)

ConfDo 通过配置 执行redis

func ConnFactory

func ConnFactory(name string) (redis.Conn, error)

ConnFactory 获取连接

func GetRedisKey

func GetRedisKey(key string) string

获取 redis 存储的 key

func LogDo

func LogDo(trace *mylog.TraceContext, c redis.Conn, commandName string, args ...interface{}) (interface{}, error)

LogDo 带有日志的 Do 方法

Types

This section is empty.

Jump to

Keyboard shortcuts

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