redis

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNilErr

func IsNilErr(err error) bool

IsNilErr returns whether err is nil error

func NewFromConfig

func NewFromConfig(cfg Config) (*redis.Client, error)

NewFromConfig returns new redis client from config

Types

type Config

type Config struct {
	Address    string
	Password   string
	Database   string
	MasterName string
	// for datacollection, notify if the snapshot redis is in use
	Enable       string
	MaxOpenConns int
}

Config define redis config

Jump to

Keyboard shortcuts

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