redisx

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

README

goto reidsx

对 go-redis 的使用整合

redis链接

url="redis://:root@localhost:6379/0"

关闭redisCli

使用 func (c *redisCli) Close(ctx context.Context, wg *sync.WaitGroup) 进行优雅关闭

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redisx

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

func New

func New(conf *configx.Configx, logCli logx.Logger) (*Redisx, error)

func (*Redisx) Close

func (c *Redisx) Close(ctx context.Context, wg *sync.WaitGroup)

func (*Redisx) DB

func (c *Redisx) DB() *redis.Client

func (*Redisx) Name

func (c *Redisx) Name() string

Jump to

Keyboard shortcuts

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