redis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(redisName ...string) redis.UniversalClient

func InitRedis

func InitRedis(configs map[string]*RedisClient)

Types

type RedisClient

type RedisClient struct {
	UniversalAddrs []string `yaml:"universal_addrs"`
	Password       string   `yaml:"password"`
	IdleTimeout    int      `yaml:"idle_timeout"`
	DB             int      `yaml:"db"`
	PoolSize       int      `yaml:"pool_size"`
	MasterName     string   `yaml:"master_name"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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