redis

package
v1.5.15 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisList sync.Map

Functions

func GetRedisDB

func GetRedisDB(db string) *redis.Client

Deprecated

func GetRedisOptions

func GetRedisOptions(db string)

Deprecated 推荐使用 NewRedis

func UpdateRedis added in v1.1.6

func UpdateRedis(db string) error

Deprecated

Types

type Client added in v1.5.6

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

func NewRedis added in v1.5.6

func NewRedis(dbName string) (c *Client)

NewRedis new Redis Client

func (*Client) Close added in v1.5.6

func (c *Client) Close()

func (*Client) GetRedis added in v1.5.6

func (c *Client) GetRedis(dbName string) *redis.Client

GetRedis 获取 RedisClient

func (*Client) NewOrUpdateRedis added in v1.5.6

func (c *Client) NewOrUpdateRedis(dbName string) error

NewOrUpdateRedis 新建或更新redis客户端

Jump to

Keyboard shortcuts

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