🏗️ microservice fabric splitting

This commit is contained in:
2024-12-24 00:38:41 +08:00
parent 462e811742
commit 89d64336f5
311 changed files with 18384 additions and 2428 deletions

12
common/redisx/redis.go Normal file
View File

@@ -0,0 +1,12 @@
package redisx
import "github.com/redis/go-redis/v9"
func NewRedis(host, password string, db int) *redis.Client {
rdb := redis.NewClient(&redis.Options{
Addr: host,
Password: password,
DB: db,
})
return rdb
}