goo_redis

package
v1.1.90 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(configs ...Config) (err error)

Types

type Client

type Client struct {
	*redis.Client
}

func Default added in v1.1.39

func Default() *Client

func GetClient added in v1.1.39

func GetClient(names ...string) *Client

func New added in v1.1.39

func New(conf Config) (cli *Client, err error)

type Config

type Config struct {
	Name     string `yaml:"name" json:"name"`
	Addr     string `yaml:"addr" json:"addr"`
	Password string `yaml:"password" json:"password"`
	DB       int    `yaml:"db" json:"DB"`
	Prefix   string `yaml:"prefix" json:"prefix"`
	AutoPing bool   `yaml:"auto_ping" json:"autoPing"`
}

Jump to

Keyboard shortcuts

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