redis

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

type Opts

type Opts func(*Option)

func WithDialTimeout

func WithDialTimeout(dialTimeout time.Duration) Opts

func WithReadTimeout

func WithReadTimeout(readTimeout time.Duration) Opts

func WithWriteTimeout

func WithWriteTimeout(writeTimeout time.Duration) Opts

type Redis

type Redis struct {
	URI  string `yaml:"URI"`
	Auth string `yaml:"Auth"`
	Db   int    `yaml:"Db"`
	Type string `yaml:"Type"`
}

func (*Redis) GetCache added in v0.1.15

func (rds *Redis) GetCache() redis.Cmdable

GetCache 返回缓存实例

func (*Redis) Init

func (rds *Redis) Init(opts ...Opts)

Jump to

Keyboard shortcuts

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