redis

package
v0.0.0-...-d541d15 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *redis.Client

Functions

func InitRedis

func InitRedis(c *Config) (func() error, error)

Types

type Config

type Config struct {
	DSN                string        `json:"dsn" toml:"dsn" mapstructure:"dsn"`
	ConnectTimeout     time.Duration `json:"connect_timeout" toml:"-" mapstructure:"-"`
	StartupRetryTimes  int           `json:"startup_retry_times" toml:"-" mapstructure:"-"`
	StartupRetryPeriod time.Duration `json:"startup_retry_period" toml:"-" mapstructure:"-"`
}

func (*Config) String

func (r *Config) String() string

func (*Config) VerifyConfig

func (c *Config) VerifyConfig() error

Jump to

Keyboard shortcuts

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