redis

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Nil = redis.Nil
)

Functions

func NewClient

func NewClient(r *redis.Options) (err error)

NewClient 推荐链接格式

 	&redis.Options{
	Addr:         "127.0.0.1:6379",
	Password:     "hello", // no password set
	db:           0,       // use default db
	PoolSize:     100,
	MinIdleConns: 50,
}

Types

type Option

type Option func(r *redis.Options)

type Redis

type Redis struct {
	Addr string
	Type string
	Pass string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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