package
1.2.175
Repository: https://github.com/gif-gif/go.io.git
Documentation: pkg.go.dev

# README

go-redis

redis 连接和操作 基于 github.com/go-redis/redis 库
  • 使用方法
	config := goredis.Config{
		Name:     "goredis",
		Addr:     "127.0.0.1:6379",
		Password: "",
		DB:       0,
		Prefix:   "goredis",
		AutoPing: true,
	}

	err := goredis.Init(config)
	if err != nil {
		golog.WithTag("goredis").Error(err)
	}

	cmd := goredis.Default().Set("goredis", "goredis")
	if cmd.Err() != nil {
		golog.WithTag("goredis").Error(cmd.Err())
	}
	v := goredis.Default().Get("goredis").Val()
	golog.WithTag("goredis").InfoF(v)

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
可以一次初始化多个Redis实例或者 多次调用初始化多个实例.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author