redis

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(redisConfig *Rdconfig) (*redis.Client, error)

NewClient new redis pool from config center by watch

Types

type Rdconfig

type Rdconfig struct {
	MaxRetries  int    `json:"max_retries"`
	Addr        string `json:"addr"`
	DB          int    `json:"db"`
	Password    string `json:"password"`
	PoolSize    int    `json:"pool_size"`
	IdleTimeout int    `json:"idle_timeout"`
}

Jump to

Keyboard shortcuts

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