redis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Nil = redis.Nil
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	redis.UniversalClient
}

func NewClient

func NewClient(opts ...Option) Client

type Message

type Message = redis.Message

type Option

type Option func(o *options)

func WithAddrs

func WithAddrs(addrs ...string) Option

WithAddrs 设置连接地址

func WithDB

func WithDB(db int) Option

WithDB 设置数据库号

func WithMaxRetries

func WithMaxRetries(maxRetries int) Option

WithMaxRetries 设置最大重试次数

func WithPassword

func WithPassword(password string) Option

WithPassword 设置密码

func WithUsername

func WithUsername(username string) Option

WithUsername 设置用户名

type Pong

type Pong = redis.Pong

type Subscription

type Subscription = redis.Subscription

Jump to

Keyboard shortcuts

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