redis

package
v2.0.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf Config) (client *redis.Client, err error)

Types

type Config

type Config struct {
	Addr        string `koanf:"addr"`         // Required, Example: 127.0.0.1:6379
	DisablePing bool   `koanf:"disable_ping"` // Optional, Default: false
	Username    string `koanf:"username"`     // Optional, If empty, no username is used
	Password    string `koanf:"password"`     // Optional, If empty, no password is used
	DB          int    `koanf:"db"`           // Optional, Default: 0
}

Jump to

Keyboard shortcuts

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