goo_redis

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context, configs ...Config)

Types

type Config

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

type Redis

type Redis struct {
	*redis.Client
	// contains filtered or unexported fields
}

func Client

func Client(names ...string) *Redis

func NewRedis

func NewRedis(ctx context.Context, config Config) *Redis

Jump to

Keyboard shortcuts

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