redis

package
v0.0.0-...-b8189d2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 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.Client

func RegisterConnection

func RegisterConnection(configs map[string]*RedisClient)

Types

type RedisClient

type RedisClient struct {
	Host        string `yaml:"host"`
	Password    string `yaml:"password"`
	Port        int    `yaml:"port"`
	IdleTimeout int    `yaml:"idle_timeout"`
	DB          int    `yaml:"db"`
	PoolSize    int    `yaml:"pool_size"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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