redis

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *r.Client // redis连接
)
View Source
var Default group = group{}
View Source
var Hash grouphash = grouphash{}

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	Enable   bool   `mapstructure:"enable" json:"enable" yaml:"enable"`       // 是否开启
	DB       int    `mapstructure:"db" json:"db" yaml:"db"`                   // redis的哪个数据库
	Addr     string `mapstructure:"addr" json:"addr" yaml:"addr"`             // 服务器地址:端口
	Password string `mapstructure:"password" json:"password" yaml:"password"` // 密码
}

func (RedisConfig) Load

func (rc RedisConfig) Load()

Jump to

Keyboard shortcuts

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