conn

package
v0.0.0-...-a32e77c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisDB *redis.Client

Functions

func GetRedisDB

func GetRedisDB() *redis.Client

Types

type RedisConfig

type RedisConfig struct {
	Addr         string `yaml:"addr"`
	DB           int    `yaml:"db"`
	PoolSize     int    `yaml:"pool_size"`
	Password     string `yaml:"password"`
	IdleTimeout  int    `yam:"idle_timeout"`
	DialTimeout  int    `yam:"dial_timeout"`
	ReadTimeout  int    `yam:"read_timeout"`
	WriteTimeout int    `yam:"write_timeout"`
}

Jump to

Keyboard shortcuts

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