redisx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close 关闭Redis连接

func Initialize

func Initialize(conf Config) error

Initialize 初始化Redis连接

Types

type Config

type Config struct {
	Host string // 服务地址
	Port int    // 服务端口
	Pass string // 密码
	DB   int    // 数据库
}

Config Redis 配置

type RedisEngine

type RedisEngine = redis.Client

RedisEngine Redis 引擎

func GetRDB

func GetRDB() *RedisEngine

GetRDB 获取Redis实例

Jump to

Keyboard shortcuts

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