redis

package
v1.19.47 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

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

func (*RedisClient) Check

func (r *RedisClient) Check() error

func (*RedisClient) Close

func (r *RedisClient) Close()

func (*RedisClient) GetConnection

func (r *RedisClient) GetConnection(dbName ...string) (redis.UniversalClient, error)

func (*RedisClient) Init

func (r *RedisClient) Init(redisConfigUrl string)

func (*RedisClient) IsMultiDB added in v1.1.23

func (r *RedisClient) IsMultiDB() bool

func (*RedisClient) ListConnNames added in v1.1.23

func (r *RedisClient) ListConnNames() []string

func (*RedisClient) PSubscribe added in v1.19.38

func (r *RedisClient) PSubscribe(dbName string, handler func(msg *redis.Message, dbName string), channels ...string)

PSubscribe 订阅消息并自动重连

Jump to

Keyboard shortcuts

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