redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheKey added in v0.3.0

func CacheKey(key string) string

CacheKey 构建缓存key

func Close

func Close()

func Initialize

func Initialize()

func MainKey added in v0.3.0

func MainKey(key string) string

MainKey 构建安全key

Types

type Client

type Client interface {
	redis.Cmdable
	Close() error
	Ping(ctx context.Context) *redis.StatusCmd
}

Client redis客户端

func CacheClient added in v0.3.0

func CacheClient() Client

CacheClient 获取缓存redis实例

func MainClient added in v0.3.0

func MainClient() Client

MainClient 获取主redis实例

Jump to

Keyboard shortcuts

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