redis

package
v0.0.0-...-be0592b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 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
	Port       string
	Password   string
	Database   string
	MasterName string
}

Config define redis config

func ParseConfigFromKV

func ParseConfigFromKV(prefix string, conifgmap map[string]string) Config

ParseConfigFromKV returns new config

Jump to

Keyboard shortcuts

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