redis

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func New

func New(opts Option) (*redis.Client, error)

New returns a client to the Redis Server specified by opts.

Types

type Option

type Option struct {
	Addr     string `yaml:"addr"`
	Password string `yaml:"password"` // if password is "", it means no password set.
	DB       int    `yaml:"DB"`
}

func (*Option) Valid

func (opts *Option) Valid() []error

Jump to

Keyboard shortcuts

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