redis

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Redis = &RedisClient{}

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(redisConfigData []byte)

func (*RedisClient) IsMultiDB

func (r *RedisClient) IsMultiDB() bool

func (*RedisClient) ListConnNames

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

func (*RedisClient) PSubscribe

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