redis

package
v1.23.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
}

func NewClient

func NewClient(options *Options) (*Client, error)

type Options

type Options struct {
	Addr     string `json:"addr,omitempty" description:"redis address"`
	Password string `json:"password,omitempty" description:"redis password"`
}

func NewDefaultOptions

func NewDefaultOptions() *Options

func (*Options) RegistFlags

func (o *Options) RegistFlags(prefix string, fs *pflag.FlagSet)

func (*Options) ToDsn

func (o *Options) ToDsn(db int) string

Jump to

Keyboard shortcuts

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